import java.net.*;public class NetTool { InetAddress myIPaddress=null; InetAddress myServer=null; public static void main( String args[]) { NetTool mytool; mytool=new NetTool(); System.out.println("Your host IP is: " + mytool.getMyIP()); System.out.println("The Server IP is :" +mytool.getServerIP()); }
{
InetAddress myIPaddress=null; InetAddress myServer=null; public static void main( String args[])
{ NetTool mytool; mytool=new NetTool(); System.out.println("Your host IP is: " + mytool.getMyIP()); System.out.println("The Server IP is :" +mytool.getServerIP()); }