InetAddress byName = InetAddress.getByName("173.39.161.140"); System.out.println(byName); System.out.println(byNam
Or using this way:
public static boolean exists(final String host) { try { InetAddress.getByName(host); return true; } catch (final UnknownHostException exception) { exception.printStackTrace(); // Handler } return false; }