Android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)

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

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

Details regarding the error can be understood from here: https://android.googlesource.com/platform/libcore/+/jb-mr2-release/luni/src/main/java/libcore/io/ErrnoException.java https://developer.android.com/reference/android/system/ErrnoException.html

Tags:

Ip

Json

Android