Java Program to Find IP Address

In this program we will find ip address by using InetAddress class present in package. Method getLocalHost() prints the ip of your local machine while method getByName() prints the ip of a particular url.

Also Read: Java Program to Find Union of two Arrays



class FindIP
public static void main(String…s)throws Exception

Java Program to Find IP Address

5 thoughts on “Java Program to Find IP Address

  1. zafir

    hi bro, how to find network speed of individual system through the java…?


Leave a Reply

Your email address will not be published. Required fields are marked *