java.net.ConnectException: Connection refused (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

Samebug tips

,
Expert tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.

,

Check if your MongoDB is available.

Solutions on the web

via GitHub by jschristie
, 11 months ago
Connection refused (Connection refused)
via sourceforge.net by Unknown author, 1 year ago
via Google Groups by Deepankar Dhoundiyal, 11 months ago
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
at com.unboundid.util.ssl.SetEnabledProtocolsSocket.connect(SetEnabledProtocolsSocket.java:123)
at com.unboundid.ldap.sdk.ConnectThread.run(ConnectThread.java:146)

Users with the same issue

7 times, 1 hour ago
474 times, 4 hours ago
18 times, 1 day ago
12 times, 6 days ago
4 times, 1 week ago

Write tip

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