Java program for finding IP address of your own system
Students Tutorial
java-ip-address.php
import java.util.*;<br>
import java.lang.*;<br>
import java.net.*;<br>
public class GetOwnIP<br>
{<br>
public static void main(String args[])<br> {<br>
try<br>{<br>
InetAddress ownIP=InetAddress.getLocalHost();<br>
System.out.println("IP of my system is := "+ownIP.getHostAddress());<br>
}<br>catch (Exception e)<br>{<br>
System.out.println("Exception caught ="+e.getMessage());<br>
}<br>
}<br>
}