InetAddress
Creating new InetAddress objects :
1) public static InetAddress getByName(String host)
InetAddress iaddr = InetAddress.getByName(”www.acm.org");
2) public static InetAddress[] getAllByName(String host)
InetAddress iaddr[] = InetAddress.getAllByName(”x.xx.x");
3) public static InetAddress getLocalHost()
InetAddress iaddr = InetAddress.getLocalHost();
If a host is not found a UnknownHostException is thrown.