import java.net.*;
public class GetIP{
public static void main(String args[]){
InetAddress hd = null;
try{
hd = InetAddress.getByName(“www.nankai.edu.cn”);
}catch(UnknownHostException e) {}
System.out.println(hd);
}
}