As a last resort, it is occasionally necessary to reset the network connection on a server or desktop. As an example of the rarity, I have used the command once in over 10 years as an IT professional. In my case, I was troubleshooting a network connection problem on a server running Microsoft Server 2003 R2.
This particular server could not connect to the network, but could ping itself (127.0.0.1 – localhost). I had tried manually setting an IP address, updating the NIC card drivers, and even uninstalling/reinstalling the NIC cards from the system. All to no avail.
Then someone suggested I reset the TCP/IP connections using netsh. This command resets the registry for the following keys and logs all actions in the log file:
Warning: the following command resets any IP addresses, Default Gateway, and DNS settings!! So have those handy
From an elevated command prompt, run:
netsh int ip reset [log_file_name.txt]
The log file will show what keys were manipulated.
For more information see: How to reset "Internet Protocol (TCP/IP)" in Windows Server 2003