java.net.ConnectException

Connection refused


Samebug tips9

Check if your MongoDB is available.

host port isnt set

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


Solutions on the web13409

Solution icon of github
via GitHub by richtera
, 5 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by gbrost
, 7 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by jpolchlo
, 1 day ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by Patheek1971
, 5 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by yshussain
, 4 months ago
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
via GitHub by djeang
, 5 days ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by damianoneill
, 6 months ago
Connection refused (Connection refused)

Stack trace

  • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356) at java.net.Socket.connect(Socket.java:605) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:113) at com.android.okhttp.Connection.connectSocket(Connection.java:196) at com.android.okhttp.Connection.connect(Connection.java:172) at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367) at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126) at org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:46) at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:68) at mobile.shinam.com.studentco.LoginActivity.callPHPWebServiceForAuthenticate(LoginActivity.java:138) at mobile.shinam.com.studentco.LoginActivity.wsAuthenticate(LoginActivity.java:70) at mobile.shinam.com.studentco.LoginActivity.access$000(LoginActivity.java:24) at mobile.shinam.com.studentco.LoginActivity$1.onClick(LoginActivity.java:55) at android.view.View.performClick(View.java:5637) at android.view.View$PerformClick.run(View.java:22429) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

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

2 times, 6 months ago
Once, 7 months ago
Once, 1 month ago
66 times, 8 months ago
2 times, 2 weeks ago
491 more bugmates