Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. HttpsURLConnectionImpl.getInputStream() has thrown a ConnectException
    Java Runtime
    2
    1
    6
  2. Client cannot establish connection with the server
    Java Runtime
    853
    874
    748

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
99 frames hidden

Solution

poroszd4 months ago

Roughly there are three categories of this problem:

  • no network available: Probably your machine's network interface is down. Check if you have internet and your application has permissions to use the network interface
  • connection refused: The address you are trying to connect is not listening. Check if you did not misspelled the host or the port. Also verify that the server you are trying to reach is actually running and listening.
  • connection timed out: The server took too much time to respond. You either have to increase the timeout limit or speed up the server.

External results for this pattern (10)

  1. AvijayCvia GitHub1 day ago
    Exiting WorkerSinkTask due to unrecoverable exception.
    Show stack trace
  2. kevinfealeyvia GitHub1 day ago
    Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-176]
    Show stack trace
  3. MentosPLvia GitHub1 day ago
    Connection timed out
    Show stack trace
  4. Carvanevia GitHub1 day ago
    Connection timed out
    Show stack trace
  5. ansellvia GitHub1 day ago
    Connection timed out (Connection timed out)
    Show stack trace
  6. ansellvia GitHub1 day ago
    Connection refused (Connection refused)
    Show stack trace
  7. cumtwweivia GitHub1 day ago
    Could not connect to http://127.0.0.1:9200
    Show stack trace
  8. massdosagevia GitHub3 days ago
    Connection refused (Connection refused)
    Show stack trace
  9. NipunaPrashanvia GitHub3 days ago
    Error occurred while communicate with DCR endpoint: https://localhost:9443/client-registration/v0.14/register
    Show stack trace
  10. pdbain-ibmvia GitHub3 days ago
    Connection refused
    Show stack trace