Hi guys.. Try This code to change your Local IP address. import java.io.IOException; import java.lang.Runtime; public class Chang_Ip { public static void main(String args[]) throws IOException { String str1="192.168.0.201"; String str2="255.255.255.0"; String[] command1 = { "netsh", "interface", "ip", "set", "address", "name=", "Local Area Connection" ,"source=static", "addr=",str1, "mask=", str2}; Process pp = java.lang.Runtime.getRuntime().exec(command1); } }