java.net.ConnectException: Connection timed out: connect

Coderanch | Anand Loni | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    HttpURLConnection

    Coderanch | 1 decade ago | Anand Loni
    java.net.ConnectException: Connection timed out: connect
  2. 0

    Consuming OBIEE Webservice using Java.

    Oracle Community | 7 years ago | 797523
    java.net.ConnectException: Connection refused: connect

    Root Cause Analysis

    1. java.net.ConnectException

      Connection timed out: connect

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      URL.getContent
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      5. java.net.Socket.connect(Socket.java:507)
      6. java.net.Socket.connect(Socket.java:457)
      7. sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      8. sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
      9. sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
      10. sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
      11. sun.net.www.http.HttpClient.New(HttpClient.java:287)
      12. sun.net.www.http.HttpClient.New(HttpClient.java:299)
      13. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
      14. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
      15. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
      16. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
      17. java.net.URLConnection.getContent(URLConnection.java:682)
      18. java.net.URL.getContent(URL.java:1021)
      18 frames
    3. Unknown
      Tp.main
      1. Tp.main(Tp.java:20)
      1 frame