import java.awt.*;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
class Main
{
public static void main(String args[]) throws IOException
{
InetAddress ip;
String hostname;
ip = InetAddress.getLocalHost();
hostname = ip.getHostName();
System.out.println("Current IP address : " + ip + "
" +
"current Hostname : " + hostname);
}
}