How to reset TCP/IP by using the NetShell utility

Applies to: Microsoft Windows XP ProfessionalMicrosoft Windows XP Home EditionMicrosoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86)

You can try to reset TCP/IP if you have Internet connection issues. This article describes two ways to reset TCP/IP. To have us reset TCP/IP for you, go to the "Here's an easy fix" section. If you prefer to reset TCP/IP manually, go to the "Let me fix it myself" section.

Reset TCP/IP automatically

To reset TCP/IP automatically, click the Download button. In the File Download dialog box, click Run or Open, and then follow the steps in the easy fix wizard.

Windows 8.1, Windows 8, Windows RT, Windows 7, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2

Windows Vista, Windows XP, Windows Server 2008 or Windows Server 2003



Manually reset TCP/IP

To manually reset TCP/IP, follow these steps:


When you run the reset command, it overwrites the following registry keys, both of which are used by TCP/IP:
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters SYSTEM\CurrentControlSet\Services\DHCP\Parameters
This has the same effect as removing and reinstalling TCP/IP. To run the manual command successfully, you must specify a name for the log file in which the netsh actions will be recorded. (This log file is referred to as "resetlog.txt" in the manual procedures earlier in this section.)


Note You must be logged on to the computer as an administrator to perform the steps. 

More Information

Did this fix the problem?

Check whether the problem is fixed. If it is, you are finished with this article. If the problem is not fixed, you can contact Support.For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
314067 How to troubleshoot TCP/IP connectivity with Windows XP
811259 How to determine and recover from Winsock2 corruption in Windows Server 2003, in Windows XP, and in Windows Vista
314053 TCP/IP and NBT configuration parameters for Windows XP