The getByName() factory method
public static InetAddress getByName(String host) throws UnknownHostException
InetAddress utopia, duke;
utopia = InetAddress.getByName("utopia.poly.edu");
duke = InetAddress.getByName("128.238.2.92");
catch (UnknownHostException e) {