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 Stack Overflow by bwillemo
, 2 months ago
Connection refused (Connection refused)
via nabble.com by Unknown author, 2 years ago
via Stack Overflow by cuzynot
, 3 days ago
Connection refused (Connection refused)
via GitHub by dchuquilla
, 1 year ago
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
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 java.net.Socket.connect(Socket.java:538)
at java.net.Socket.(Socket.java:434)
at java.net.Socket.(Socket.java:211)
at undefined.Client.connect(Client.java:84)
at undefined.Client.(Client.java:65)
at undefined.Client.main(Client.java:301)

Users with the same issue

142 times, 2 days ago
8 times, 3 days ago
552 times, 4 days ago
11 times, 6 days ago
26943 times, 1 week ago

Write tip

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