public static boolean reachable(InetAddress addr,int reachTimeout){
  try {
    return addr.isReachable(reachTimeout);
  }
 catch (  IOException ignore) {
    return false;
  }
}

public static boolean reachable ( InetAddress addr , int reachTimeout ) { try { return addr . isReachable ( reachTimeout ) ; } catch ( IOException ignore ) { return false ; } }
checks if address can be reached using one argument inetaddress . isreachable ( ) version .
