netsh interface ip set address name="Local Area Connection" static 192.168.0.20 255.255.255.0 192.168.0.1 1 Import/Export your TCP/IP settings Export your current IP settings to a text file. Use the following command: netsh -c interface dump > c:\\MySettings.txt Import your IP settings and change them, just enter the following command in a Command Prompt window (CMD.EXE): netsh -f c:\\MyAnotherSettings.txt