You are on page 1of 1

import java.net.

*;
class URL
{
public static void main (String args[])
{
try
{
InetAddress address = InetAddress.getByName("192.168.23.9");
System.out.println(address.getHostName());
}
catch (UnknownHostException e)
{
System.out.println("Could not find 192.168.23.9");
}
}
}

You might also like