Pattern selector

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

  1. 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 refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)

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