java.net.SocketException: Unable to establish connection

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 Khalid Galal
, 2 years ago
via Oracle Community by 875197, 1 year ago
via Stack Overflow by Prashant Pharate
, 1 year ago
via Stack Overflow by Myth17
, 2 years ago
via Stack Overflow by Unknown author, 2 years ago
Operation timed out: connect:could be due to invalid address
java.net.SocketException: Unable to establish connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(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.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)

Users with the same issue

46 times, 1 month ago
31 times, 1 month ago
4 times, 3 months ago
Once, 3 months ago
2 times, 4 months ago

Write tip

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