A way to check if any address is available using java.net.InetAddress.isReachable () methods. The implementation of these methods is native and tries to do everything possible to "ping" the address provided by InetAddress.
, Windows Linux/Unix java.net.InetAddress.isReachable().
Windows, , ICMP "ping" . , Java SE 5 TCP 7 ( ) - .
Linux/Unix, , ICMP "ping" . , java.net.InetAddress.isReachable() "ping" ; , , TCP 7, Windows.
, Linux/Unix ping root, java.net.InetAddress.isReachable() , Java root.
- ICMP. , ping. .
FROM: Simone Bordet