To change the IP of your Windows computer, to a fixed value, using DOS run
netsh interface ip set address name=”Local Area Connection” static 192.168.1.2 255.255.255.0 192.168.1.1
whereas 192.168.1.2 is your new address
255.255.255.0 is the subnet
and 192.168.1.1 is the gateway
Revert
To switch back to a dynamic IP address via DHCP, run the following command
netsh interface ip set address name=”Local Area Connection” source=dhcp