Loading...
public static boolean ping(String ipAddress) throws Exception{ int timeOut=3000; boolean status= InetAddress.getByName(ipAddress).isReachable(timeOut); // 当返回值是true时,说明host是可用的 return...