You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
335 B
Java
8 lines
335 B
Java
import java.net.InetAddress;
|
|
public class Main {
|
|
public static void main(String[] argv) throws Exception {
|
|
InetAddress addr = InetAddress.getByName("23.229.203.68");
|
|
System.out.println("Host name is: "+addr.getHostName());
|
|
System.out.println("Ip address is: "+ addr.getHostAddress());
|
|
}
|
|
} |