java.net.ConnectException: Connection refused

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 Oracle Community by 408071, 1 year ago
via Oracle Community by 807597, 1 year ago
Connection refused
via Oracle Community by user8680179, 1 year ago
Connection refused
via Oracle Community by 843811, 1 year ago
Connection refused
via Oracle Community by 716679, 1 year ago
Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:3916)

Users with the same issue

142 times, 1 day ago
8 times, 2 days ago
552 times, 2 days ago
11 times, 5 days ago
26943 times, 5 days ago

Write tip

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