Resetting the Network Connection – Reset TCP/IP

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 ( – 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:

  • SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
  • SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

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

Leave a Reply


We use cookies to ensure the best possible experience on our website. Detailed information on the use of cookies on this site is provided in our Privacy and Cookie Policy. Further instruction on how to disable our cookies can be found there.