java.net.ConnectException: Connection timed out: connect

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Ravi Kiran Va, 1 year ago
Connection timed out: connect
via openbravo by xanagu
, 1 year ago
Connection timed out: connect
via Coderanch by hemant Budhewar BamniBk, 1 year ago
Connection timed out: connect
via Coderanch by Anand Loni, 1 year ago
Connection timed out: connect
via Oracle Community by user6049436, 1 year ago
via Google Groups by puneetjain, 5 months ago
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at undefined.Main.main(Main.java:11)

Users with the same issue

142 times, 18 hours ago
8 times, 1 day ago
552 times, 2 days ago
11 times, 4 days ago
26943 times, 4 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.