By Editorial Staff. Updated on
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
Sharing is caring!