java.net.ConnectException: failed to connect to /192.168.0.1 (port 8443): connect failed: ECONNREFUSED (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

Probably the server has crashed or it isn't running, or your client is trying to connect to it using the wrong port.

Solutions on the web

via GitHub by bcook-r7
, 1 year ago
failed to connect to /192.168.0.1 (port 8443): connect failed: ECONNREFUSED (Connection refused)
via google.com by Unknown author, 2 years ago
failed to connect to (port 80): connect failed: ETIMEDOUT (Connection timed out)
via xamarin.com by Unknown author, 2 years ago
failed to connect to googleads.g.doubleclick.net/127.0.0.1 (port 80): connect failed: ECONNREFUSED (Connection refused)
via blogspot.com by Unknown author, 1 year ago
failed to connect to /10.0.2.2 (port 80): connect failed: ETIMEDOUT (Connection timed out)
via Stack Overflow by Robin
, 4 months ago
failed to connect to abc-def.csrlbs.com/50.19.101.191 (port 80): connect failed: ETIMEDOUT (Connection timed out)
via Stack Overflow by Unknown author, 2 years ago
failed to connect to /127.0.0.1 (port 81): connect failed: ECONNREFUSED (Connection refused)
java.net.ConnectException: failed to connect to /192.168.0.1 (port 8443): connect failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.connect(IoBridge.java:114)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:842)
at libcore.net.http.HttpConnection.(HttpConnection.java:76)
at libcore.net.http.HttpConnection.(HttpConnection.java:50)
at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)

Users with the same issue

Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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