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
  6. Operation timed out: connect
  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

Client cannot establish connection with the server

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

Similar

Specific cases

External results for this pattern (2800)

  1. 643155via Oracle Community3 weeks ago
    Connection refused: connect
    Show stack trace
  2. 843789via Oracle Community1 month ago
    Connection refused: connect
    Show stack trace
  3. 801419via Oracle Community1 month ago
    Connection refused: connect
    Show stack trace
  4. 626547via Oracle Community1 month ago
    Connection timed out
    Show stack trace
  5. 843840via Oracle Community1 month ago
  6. gaganvia Stack Overflow1 month ago
    Connection timed out: connect
    Show stack trace
  7. 624699via Oracle Community2 months ago
    Connection refused
    Show stack trace
  8. Jay Sharkvia Stack Overflow2 months ago
    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
  9. 843785via Oracle Community2 months ago
    Connection timed out: connect
    Show stack trace
  10. 843851via Oracle Community2 months ago
    Connection timed out: connect
    Show stack trace