java.net.ConnectException: Connection refused: 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 Apache's JIRA Issue Tracker by Kevin Lester, 1 year ago
Connection refused: connect
via Stack Overflow by hiro
, 1 year ago
failed to connect to smtp.gmail.com/2404:6800:4008:c01::6c (port 587): connect failed: ECONNREFUSED (Connection refused)
via Stack Overflow by user1645434
, 2 years ago
Connection timed out: connect
via Stack Overflow by SomeOne
, 2 years ago
Connection timed out: connect
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
at javax.mail.Service.connect(Service.java:288)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 10 months ago

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