How to reinstall TCP/IP in Windows 2000 or Windows XP

You might have to reinstall TCP/IP to help resolve some issues, such as improperly configured bindings, dialup clients that are unable to connect to the RAS server, NIC drivers that do not properly bind to the TCP/IP protocol, or just a TCP/IP installation which does not work at all while it worked before without any changes you made to the system.

To remove TCP/IP in Windows 2000:

Click to clear the TCP/IP check box from all dialup and LAN connections in "Network and Dialup Connections".
- Install another protocol (NetBEUI or NWlink) to maintain a placeholder for each connection.
- Restart your computer
- Reinstall TCP/IP, and restart your computer again.

It is a good idea to remove the new installed protocol (NetBEUI or NWlink) and reboot the computer once more, as you do not want to keep it in your system if it is not needed, besides it is hard to reinstall if it goes wrong again. 
How to reinstall TCP/IP in Windows XP
applies both to the Home and Pro editions of XP

In Windows XP, the uninstall button is disabled for the TCP/IP protocol.
The TCP/IP stack is considered a core component of the operating system, and it is not possible to uninstall it. Still,
in some extreme cases, the most appropriate solution is to reset the TCP/IP stack back to a default state.

There is a NetShell (netsh) command-line scripting utility for the configuring and monitoring of Windows XP networking.
Using this tool, a reset command is available that rewrites pertinent TCP/IP registry keys to achieve the same result as the removal and the reinstallation of the protocol.

The following registry branches are reset using this tool:


Comand usage:

Simply type the following in Command Prompt:

netsh int ip reset c:\resetlog.txt

"c:\resetlog.txt" being the logfile generated by netsh to store changes being made. If the file exists, the new log will be appended to the end of the existing file.
Related Links

MS KB 299357 - How to Reset Internet Protocol (TCP/IP) in Windows XP
MS KB 314067 - How to Troubleshoot TCP/IP connectivity with Windows XP
MS KB 811259 - How To Setermine and recover from Winsock2 corruption
MS KB 299451 - How To Remove and Reinstall TCP/IP on a Windows 2000 Domain Controller