package com.abundantcode;
import java.net.InetAddress;
public class Main {
public static void main(String[] args)
{
try
{
InetAddress ipObj = InetAddress.getLocalHost();
System.out.println(ipObj.getHostAddress());
}
catch (Exception ex)
{
System.out.println(ex.getStackTrace());
}
}
}