PlainSocketImpl.doConnect() has thrown a ConnectException

java.net.ConnectException
Javadoc
Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port). @since JDK1.1
at java.net.PlainSocketImpl.socketConnect
(source)
at java.net.PlainSocketImpl.doConnect

Typical Exception Messages

  1. Connection refused: connect
  2. Connection refused
  3. Connection timed out: connect
  4. Connection timed out
  5. Operation timed out: connect
  6. Operation timed out
  7. Connection refused: no further information
  8. Network is unreachable
  9. Invalid argument
  10. connect: Address is invalid on local machine, or port is not valid on remote machine

Origin

Java Runtime cannot connect a network socket

java.net.ConnectException
java.net.PlainSocketImpl.socketConnect
4959Web pages
1Solution

Similar

Specific cases

External results for this pattern (2930)

  1. 843785via Oracle Community5 days ago
    Connection timed out: connect
    Show stack trace
  2. 843851via Oracle Community2 weeks ago
    Connection timed out: connect
    Show stack trace
  3. 807574via Oracle Community2 weeks ago
  4. 624699via Oracle Community2 weeks ago
  5. Sandrine Beauchevia Google Groups3 weeks ago
    Connection timed out: connect
    Show stack trace
  6. 807574via Oracle Community3 weeks ago
    Connection refused
    Show stack trace
  7. gaganvia Stack Overflow4 weeks ago
    Connection timed out: connect
    Show stack trace
  8. katrinvia Stack Overflow1 month ago
    Connection timed out: connect
    Show stack trace
  9. Connection refused. The same thing happens if I use my hostname. The odd thing is that if I hit the endpoint from SoapUI, the request works fine if use 127.0.0.1, my IP address or my hostname. Here's the exception I'm getting... java.net.ConnectException: Connection refused
    Show stack trace
  10. 807591via Oracle Community1 month ago
    Connection refused: connect
    Show stack trace