java.net.ConnectException: Connection timed out: connect

Oracle Community | 807595 | 1 decade ago
  1. 0

    Connecting and reading a website:

    Oracle Community | 1 decade ago | 807595
    java.net.ConnectException: Connection timed out: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Handling a Connection timed out: connect java

    Stack Overflow | 2 years ago | Ben Johnson
    java.net.ConnectException: Connection timed out: connect
  4. 0

    GitHub comment 163#36892096

    GitHub | 3 years ago | dizzzz
    java.net.ConnectException: Connection timed out: connect

  1. mauritius 7 times, last 1 week ago
  2. marcbouvierdav 1 times, last 3 months ago
  3. bpbhat77 1 times, last 5 months ago
16 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 timed out: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    HttpURLConnection.getResponseCode
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    5. java.net.Socket.connect(Socket.java:452)
    6. java.net.Socket.connect(Socket.java:402)
    7. sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    8. sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    9. sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    10. sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    11. sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    12. sun.net.www.http.HttpClient.New(HttpClient.java:339)
    13. sun.net.www.http.HttpClient.New(HttpClient.java:320)
    14. sun.net.www.http.HttpClient.New(HttpClient.java:315)
    15. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    16. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    17. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615)
    18. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
    18 frames
  3. Unknown
    URLGet.main
    1. URLGet.main(URLGet.java:37)
    1 frame