You had a virus, drive corruption, or some other OS altering situation. But, being the hero you are, you resolved it and your PC is up and running again. That is, until you try to access the internet or some other network resource. The computer sits there trying to access that web page but nothing is happening… (Much like a MAC and its “spinning wheel of death“). First you check your network connection… Then check to see if you have obtained an IP address and other credentials. All good. What gives?
One possibility is that you have a corrupt TCP/IP stack. What is the TCP/IP stack? First, TCP/IP is an important part of the operating system that allows it to communicate across a network. (Transmission Control Protocol /Internet Protocol) Network architectures are designed in layers, such as TCP/IP, OSI and SNA, and are called “stacks.” (See TCP/IP, OSI model and protocol stack)
What can causes a corrupt TCP/IP stack? Drive corruption can cause this, or sometimes a virus can re-write your TCP/IP stack to suit it’s purposes – Bend it to it’s will, so to speak. So when you remove said virus your TCP/IP layer is rendered unusable to the operating system (corrupted).
To fix this issue we use the NetShell utility. The NetShell utility (netsh) is a command-line scripting interface for the configuring and monitoring of Windows XP, Server 2003 and Windows Vista networking services. This will reinstall and reset the TCP/IP stack (Internet Protocol) to its original state. To do this in Windows XP or Server 2003 we used the following command:
netsh int ip reset [ log_file_name ]
Example:
netsh int ip reset resetlog.txt
The above command will reset the TCP/IP stack and write a log file called resetlog.txt, recording it’s actions.
Windows Vista, adds a little hitch to the process because of the UAC (User Access Control).
To reset the Stack in Windows Vista there are a few more steps:
- Click the Start Pearl.
- Type Cmd in the Search box.
- Press the Ctrl-Shift-Enter (this is a shortcut that will run the Command Prompt as Administrator. )
- Type netsh int ip reset at the Command Prompt then press the Enter key.
- You will then have to restart the computer to complete the reset.
The command will remove all user configured settings on TCP/IP stack and return it to original default state. After the reboot completes, your network and internet browsing and use should return.
If you facing network connection issue, or more accurately unable to access or connect to Internet
or network problem in Windows Vista, Windows 2003 and Windows XP, and repair WinSock settings plus workaround for Vista IE7 strange no connection problem do not save your from Internet woes, you can try to reinstall and reset TCP/IP stack or Internet Protocol, one of the core component of the operating system
, which cannot be uninstalled.
Again, with a corrupt TCP/IP stack, the same woes may happen – unable to establish a connection to the server, unable to load a web page, unable to browse and surf the Internet, even though network connection to broadband router
or wireless router appear to be OK.
When all means run out, try to reinstall the IP stack with NetShell utility. NetShell utility (netsh) is a command-line scripting interface for the configuring and monitoring of Windows XP
, 2003 and Vista networking service.
To reinstall and reset the TCP/IP stack (Internet Protocol) to its original state as same as when the operating system was installed in Windows XP and Windows 2003, simply use the following command in command prompt shell. A log file name must be specified where actions taken by netsh will be recorded on newly created or appended if already existed file..
netsh int ip reset [ log_file_name ]
Example:
netsh int ip reset resetlog.txt
For Windows Vista, things work a little different due to introduction of UAC (Guide: Disable UAC). Use this guide to perform a reinstalling of TCP/IP protocol in Vista:
- Click on Start button.
- Type Cmd in the Start Search text box.
- Press Ctrl-Shift-Enter keyboard shortcut to run Command Prompt as Administrator. Allow elevation request.
- Type netsh int ip reset in the Command Prompt shell, and then press the Enter key.
- Restart the computer.
The command will remove all user configured settings on TCP/IP stack and return it to original default state by rewriting pertinent registry keys that are used by the Internet Protocol (TCP/IP) stack to achieve the same result as the removal and the reinstallation of the protocol
© 2009, Robert Owen. All rights reserved.