java.net.ConnectException: Connection refused: connect

tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if you don't have a VPN or something like this messing with your connection. Also, check Jenkins DNS configurations (try to start it with "--dns 8.8.8.8".
    via GitHub by lnalex
  2. 0

    A java.net.ConnectException being thrown when using HttpURLConnection

    Stack Overflow | 9 months ago | Charles
    java.net.ConnectException: Connection timed out: connect
  3. 0

    Need better error messages for network failures

    GitHub | 3 years ago | rpadams
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 16#284817199

    GitHub | 2 months ago | tarinidash
    java.net.ConnectException: Operation timed out (Connection timed out)
  6. 0

    Run spring boot integration test using maven test but the embeded tomcat is not started

    Stack Overflow | 3 years ago | Jun Wang
    org.springframework.web.client.ResourceAccessException: I/O error on POST request for :Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect

  1. eti22 1 times, last 5 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    URL.openStream
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    9. java.net.Socket.connect(Socket.java:538)
    10. sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    11. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    12. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    13. sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    14. sun.net.www.http.HttpClient.New(HttpClient.java:308)
    15. sun.net.www.http.HttpClient.New(HttpClient.java:326)
    16. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    17. sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
    18. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    19. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    20. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
    21. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    22. java.net.URL.openStream(URL.java:1045)
    22 frames
  3. org.equinoxosgi.chapter7
    EmergencyMonitor$1.run
    1. org.equinoxosgi.chapter7.client.server.toast.internal.core.channel.sender.UrlChannel.send(UrlChannel.java:50)
    2. org.equinoxosgi.chapter7.client.server.toast.client.emergency.EmergencyMonitor.runEmergencyProcess(EmergencyMonitor.java:49)
    3. org.equinoxosgi.chapter7.client.server.toast.client.emergency.EmergencyMonitor.access$0(EmergencyMonitor.java:33)
    4. org.equinoxosgi.chapter7.client.server.toast.client.emergency.EmergencyMonitor$1.run(EmergencyMonitor.java:87)
    4 frames
  4. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    1 frame