Saturday, 19 July 2014

java program to print ipaddress

                                                 java program to print ipaddress  



import java.net.InetAddress;

class IPAddress
{
   public static void main(String args[]) throws Exception
   {
      System.out.println(InetAddress.getLocalHost());
   }
}

No comments: