Change Computer IP address using JAVA

In this video I have shown how you can change IP address using java project.
I have shown this using Eclipse IDE.

1. Project Structure in Eclipse IDE is shown below. Create a Java Project.

2. The first java class is my_main.java. It will internally execute the commands as shown in the video.
Please set your adapter name, ip address, subnet mask, default gateway, dns 1 and dns 2 in the code.

my_main.java

3. my_main.java will call SyncPipe.java internally to show the output in console.
SyncPipe.java

4. After executing the mymain.java in Administrator mode. The IP address would be changed as below shown.

38 views