java.net.ConnectException: failed to connect to t.appsflyer.com/127.0.0.1 (port 80) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Tassos Bassoukos

ECONNREFUSED means that the connection was attempted and the remote host answered back that nobody's listening on that port. Check if the Java server listens on all interfaces. Or check your bind address on the server.

,
via Stack Overflow by Utsav

ECONNREFUSED means that the connection was attempted and the remote host port is not listening. Hence this can be caused by:

Is it a valid IP? check using ifconfig or ipconfig. You can try pinging the server.

ping <host-ip>

Solutions on the web

via Stack Overflow by Bhushan Babar
, 1 year ago
failed to connect to t.appsflyer.com/127.0.0.1 (port 80) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
via GitHub by wischweh
, 1 year ago
failed to connect to www.google-analytics.com/127.0.0.1 (port 80) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Stack Overflow by Nikhil Kulkarni
, 11 months ago
failed to connect to localhost/127.0.0.1 (port 8080) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Stack Overflow by Katedral Pillon
, 2 years ago
failed to connect to localhost/127.0.0.1 (port 8080) after 20000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Stack Overflow by Nikhil Kulkarni
, 11 months ago
failed to connect to localhost/127.0.0.1 (port 8080) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Stack Overflow by Varsha
, 1 year ago
failed to connect to localhost/127.0.0.1 (port 80) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:223)
at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
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:174)
at com.android.okhttp.Connection.connect(Connection.java:152)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
at com.appsflyer.AppsFlyerLib.a(SourceFile:1378)
at com.appsflyer.AppsFlyerLib.b(SourceFile:1348)
at com.appsflyer.AppsFlyerLib.a(SourceFile:32)
at com.appsflyer.AppsFlyerLib$SendToServerRunnable.run(SourceFile:1534)
at com.appsflyer.AppsFlyerLib.c(SourceFile:973)
at com.appsflyer.AppsFlyerLib.a(SourceFile:32)
at com.appsflyer.AppsFlyerLib$DataCollector.run(SourceFile:1479)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
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)

Users with the same issue

Once, 2 months ago
16 times, 3 months ago
4 times, 4 months ago
26 times, 7 months ago
2 times, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.