This is simple Java program to print the IP address of your computer. If you want to get the IP address of your machine, then keep your close attention in this tutorial as we are going to share a Java Program to Get IP Address with an example and output.
Copy the below Java program and execute it with the help Java Compiler.
public static void main(String args) throws Exception
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.