if (ip instanceof Inet4Address && ip.isReachable(100)) {
// Try for one tenth of a second
String ipv4 = ip.getHostAddress();
String name = ip.getHostName();
ActiveHost activeHost = new ActiveHost(ipv4, name);
availableAddressess.add(activeHost);
loger.log(Level.INFO, "Address %s is reachable\n", ipv4);
}
} catch (IOException e) {
loger.log(Level.WARNING, "Retrieving ips error", e);