In this program we will find ip address by using InetAddress class present in java.net 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
public static void main(String…s)throws Exception
5 thoughts on “Java Program to Find IP Address”
what problem you are getting?
It’s a plauesre to find someone who can identify the issues so clearly
hi bro, how to find network speed of individual system through the java…?