import java.net.InetAddress;
System.out.println("host name="+InetAddress.getLocalHost().getHostName());
System.out.println("ip ="+InetAddress.getLocalHost().getHostAddress());
import java.net.InetAddress;
System.out.println("host name="+InetAddress.getLocalHost().getHostName());
System.out.println("ip ="+InetAddress.getLocalHost().getHostAddress());