public static boolean checkIsReachable ( InetAddress ia , int timeout ) throws IOException { for ( ComputerPinger pinger : ComputerPinger . all ( ) ) { try { if ( pinger . isReachable ( ia , timeout ) ) { return true ; } } catch ( IOException e ) { LOGGER . fine ( "Error checking reachability with " + pinger + ": " + e . getMessage ( ) ) ; } } return false ; }
Is this computer reachable via the given address?