java.net.ConnectException

failed to connect to authrad.vmet.ro/10.1.1.5 (port 80) after 2000ms: isConnected failed: ECONNREFUSED (Connection refused)

Samebug tips2

The system selects automatically a group owner. The owner is always 192.168.49.1, and maybe it's trying to connect to itself. If you want to select an owner yourself, you can change the value of ownerIntent, more on this here: https://goo.gl/DGEh7K


rafaelrafael

If you're using Retrofit, check if the page you're trying to access doesn't redirect you somewhere else, as it seems to this exception.

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

Solutions on the web161

  • via Unknown by Unknown author,
  • Stack trace

    • java.net.ConnectException: failed to connect to authrad.vmet.ro/10.1.1.5 (port 80) after 2000ms: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:223) at libcore.io.IoBridge.connectErrno(IoBridge.java:161) at libcore.io.IoBridge.connect(IoBridge.java:112) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460) at java.net.Socket.connect(Socket.java:833) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:152) at com.android.okhttp.Connection.connect(Connection.java:949) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:405) at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:343) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:289) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503) at pw.thedrhax.httpclient.HttpRequest.connect(HttpRequest.java:116) at pw.thedrhax.httpclient.HttpClient.navigate(HttpClient.java:67) at pw.thedrhax.httpclient.HttpClient.navigate(HttpClient.java:89) at pw.thedrhax.mosmetro.authenticator.Authenticator.getPageContent(Authenticator.java:51) at pw.thedrhax.mosmetro.authenticator.Authenticator.connect(Authenticator.java:141) at pw.thedrhax.mosmetro.authenticator.AuthenticatorStat.connect(AuthenticatorStat.java:37) at pw.thedrhax.mosmetro.activities.DebugActivity$AuthTask.doInBackground(DebugActivity.java:124) at pw.thedrhax.mosmetro.activities.DebugActivity$AuthTask.doInBackground(DebugActivity.java:110) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: libcore.io.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:208) ... 27 more

    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

    Indri YunitaIndri Yunita
    2 times, last one
    rprp
    Once,
    Hiren AmaliyarHiren Amaliyar
    Once,
    rafaelrafael
    Once,
    ajinkya_wajinkya_w
    11 times, last one
    30 more bugmates