java.net.ConnectException

Connection refused: connec t


Samebug tips9

Check if your MongoDB is available.

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web13426

Solution icon of coderanch
via Coderanch by Chetan Bengaluru, 1 year ago
Connection refused: connec t

Solution icon of web
via knowcoding.com by Unknown author, 1 year ago
Connection refused: connec t

Solution icon of oraclecommunity
via Oracle Community by 807597, 1 year ago
Connection refused: connec t

Solution icon of oraclecommunity
via Oracle Community by 807607, 1 year ago
Connection refused: connec t

Solution icon of web
Connection refused: connec t

Solution icon of web
Connection refused: connec t

Solution icon of web
via hivmr.com by Unknown author, 1 year ago
Connection refused: connec t

Solution icon of web
via hivmr.com by Unknown author, 1 year ago
Connection refused: connec t

Solution icon of web
Connection refused: connec t

Solution icon of googlegroups
via Google Groups by Ousmane Diallo, 2 months ago
Connec tion refused

Stack trace

  • java.net.ConnectException: Connection refused: connec t at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source) at InstallCert.main(InstallCert.java:94)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 9 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
991 more bugmates