java.net.ConnectException: Connection refused


Samebug tips10

Check if your MongoDB is available.


10 months ago

host port isnt set


,
via GitHub by rawlingsj

Solutions on the web5566

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

Solution icon of github
via GitHub by dineiar
, 1 month ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by sanguinar
, 4 weeks 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 blackfinn
, 10 months ago
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
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

Once, 1 month ago
2 times, 8 months ago
Once, 9 months ago
Once, 3 months ago
66 times, 10 months ago
505 more bugmates