java.net.ConnectException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • client.connect() not working
    via Stack Overflow by Varsha
    ,
  • Paste.ee - View paste K2dtg
    via by Unknown author,
  • GitHub comment 3167#145736532
    via GitHub by oren
    ,
  • john gomez - Google+
    via by Unknown author,
  • GitHub comment 581#176119413
    via GitHub by whoisroot
    ,
    • java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 80) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:241) at libcore.io.IoBridge.connectErrno(IoBridge.java:174) at libcore.io.IoBridge.connect(IoBridge.java:122) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) at java.net.Socket.connect(Socket.java:882) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:139) at com.android.okhttp.Connection.connect(Connection.java:152) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:279) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:213) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:373) at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106) at com.example.playtym.playtym.Mobile_num$signin_process.get_response(Mobile_num.java:154) at com.example.playtym.playtym.Mobile_num$signin_process.doInBackground(Mobile_num.java:109) at com.example.playtym.playtym.Mobile_num$signin_process.doInBackground(Mobile_num.java:100) 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:818) Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:226) ... 20 more

    Users with the same issue

    ajinkya_wajinkya_w
    14 times, last one,
    RiyazRiyaz
    4 times, last one,
    dmitrydmitry
    192 times, last one,
    szosziszoszi
    2 times, last one,
    malhobayyebmalhobayyeb
    2 times, last one,
    50 more bugmates