Android Debugging InetAddress.isReachable

seems that isReachable() never worked well on Android b/c it tries to use ICMP, that usually needs a root privileges, and then it tries to establish connection to port 7, that’s usually have no running services on modern systems.

you’d better check connectivity with establishing TCP connection to ports you know should be open.

Leave a Comment