Here you can find the source of isReachable(final InetAddress inetAddress, final int timeout)
private static boolean isReachable(final InetAddress inetAddress, final int timeout) throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.net.*; public class Main { private static boolean isReachable(final InetAddress inetAddress, final int timeout) throws IOException { return inetAddress.isReachable(timeout); }//from ww w. j av a2 s .c o m }