java.net.ConnectException

Connection refused

Samebug tips9

tip

Check if your MongoDB is available.


rprp
tip

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 web5657

  • via GitHub by dj1818
    ,
  • 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

    gamebusterzgamebusterz
    2 times, last one,
    Alexandru PopaAlexandru Popa
    1 times, last one,
    filipebatistafilipebatista
    1 times, last one,
    Aria PahlavanAria Pahlavan
    66 times, last one,
    VikramVikram
    1 times, last one,
    479 more bugmates