import java.net.InetAddress; import java.net.UnknownHostException; public class MainClass { public static void main(String args[]) { try { InetAddress inetAddr = InetAddress.getByName("www.java2java.com"); System.out.println(inetAddr.toString()); } catch (UnknownHostException ex) { } } }
www.java2java.com/208.109.14.69