Jun 19, 2007
My Digital Life Editorial Team

Reinstall and Reset TCP/IP (Internet Protocol) in Windows Vista, 2003 and XP

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:

  1. Click on Start button.
  2. Type Cmd in the Start Search text box.
  3. Press Ctrl-Shift-Enter keyboard shortcut to run Command Prompt as Administrator. Allow elevation request.
  4. Type netsh int ip reset in the Command Prompt shell, and then press the Enter key.
  5. 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. The registry keys affected are:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\

and

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

Related posts:

  1. Repair and Reset Windows Vista TCP/IP Winsock Catalog Corruption
  2. Easy Method to ReArm and Reset Windows Vista Activation for Unlimited Times with Vista Reset
  3. Forgot Windows Administrator Password? Ways to Recover and Reset Password in Vista/XP/2003/2K/NT
  4. Increase Multithread Download Speed by Disable Vista Auto Tuning on TCP/IP
  5. Disable TCP Auto-Tuning to Solve Slow Network, Cannot Load Web Page or Download Email Problems in Vista

42 Comments

  • OMG!!!!!!! This worked! I still have some hair left although I almost pulled most of it out trying to fix my networking after a virus attack. Thank you for using your powers for GOOD, and not EVIL.

  • Thank you for this information. I finally have dhcp working so that I can look at the original problem with internet crashing

  • [...] Windows Vista, things work a little different due to introduction of UAC (Guide: Disable UAC). Use this guide to perform a [...]

  • I also tried everything suggested, reset WINSOCK, reset IP stact, run CHKDSK, reconfigure network settings, uninstalling and re-installing network adapter, etc., etc. I finally saw the post about Norton and realized that the problem all started when I downloaded and installed NIS 2011 (dumb mistake, always take one step back to where you were before the problem happened and work backwards from there) Instead I overlooked the obvious. After uninstalling the Norton IS 2011 everything worked fine. Don't get me wrong, I like Norton and have never had any issues with their software before but this was the exception.

  • nice. thanks for the info.

  • Another satisfied customer… Thanks a lot for this fix.

  • Thank you so much it is appreciated!!!!!!!!!!!

  • I would like to send a big THANK YOU!! I spent the last week trying everything I could find on the internet and getting ready to rip this one apart.

    This fix had it back on the Internet in 10 minutes.

  • Excellent fix! Worked like a charm. Thanks so much!

  • Parker

    Thank you!!!! I have tried every single thing to fix this laptop and this little tip was the key. I was 10min away from doing a full format. Thanks, you just made my day :-)

  • @Parker,

    I'd been trawling through forums for a long while before coming across your proxy server removal suggestion. Worked like a charm. Cracked open a beer after that triumph.

    Cheers!!

    Ian

  • @Parker

    My friend was having the same issue and I've been trying to do everything to fix it for him. Every method I looked up through google wasn't working, then I tried yours and it worked wonderfully. Thanks!

  • Well explained! You may not be able to remove such protocol but there's a way to reinstall it and that's to reset it to its original state. Using NetShell and its reset command to reinstall Internet protocol isn’t really that difficult, though the steps are carried out using the command prompt.

  • This worked perfectly for me, thanks so much! I was on a Gateway laptop, Vista, pre-SP1. All interfaces kept getting the auto-local IP (169.254.x.x). netsh winsock reset didn't do th trick, but this netsh int ip reset followed by reboot cleared it right up.

  • I tried using the netsh int ip reset resetlog.txt command but this didn't seem to work. As others have stated I could use other applications, however http (port 80) would not work. I knew DNS was working because I could ping google.com

    Unfortunately I had virus on my pc and used the following tools with no avail:

    1. Malware Bytes

    2. Avira Anti-Virus

    3. HiJack This!

    4. SpyBot

    While running HiJack This! I noticed a line in the log that mentioned a proxy server of 127.0.0.1 which is the loopback.

    I removed the proxy server using the steps below (IE 8).

    1. Tools>Internet Options>Connections.

    2. Click Lan Settings.

    3. Uncheck "Use a proxy server…".

    4. Click OK.

    After removing the proxy server, chrome and IE started working perfectly. I'm not sure why chrome uses the proxy settings from IE, bad move.

    Hopefully this helps someone.

    • hey parker just had to take the time to let u know your the man. As soon as i did what you said almost instantly boom theres goes the internet appreciate the help and thinking of even posting this. Truly helped did the command promt resets first may have helped idk but this tip that parker posted booomm shaka laka lol its on the money thanks again.

  • Also, in device manager all network items were enabled — I even tried enable then disable before putting in the syntax I referred to in my previous post.

    I think I'll now go read about NETSH to get a better understanding of this tool. Just another tool to use to solve problems. Wireshark is a good troubleshooting tool too.

    • wow dude, unchecked proxy settings and everything is working. THXXXXXXXXXXXXXXXXXXX DUDE

  • I actually used the NETSH WINSOCK RESET CATALOG command line to fix a Vista problem I encountered. After typing in that command, pressing ENTER, and rebooting… the problem was fixed.

    SYMPTOMS

    Could not log onto domain-joined laptop with network credentials. Vista Ultimate kept saying the netlogon service failed to start. I was able to log on as local admin and troubleshoot. The OS saw all NICs in device manager, but when connected to the network via the NIC, the OS still showed not connected. I could not manually start the netlogon service or other pertinent services without an error message.

    The above command saved the F*****G day!!!

  • I am forever thankful!

    Symptom: Windows XP. All of a sudden it couldn't get any network activity 2 weeks ago. Nothing was installed (not even Windows update). Both LAN and Wireless network adapters were not recognized.

    netsh int ip reset resetlog.txt worked and saved me + my laptop.

  • I reset the winsock from both pages, it is easier to look up the exact line of code, then to search thru my books.

    I was not able to fix with the winsock reset, I then installed firefox to see if that help. (no)

    Then I disabled the firewall (vista), found an old version of norton firewall, ran norton removal tool – still not working

    I ran hijack this again, and noticed that windows live one care family safety was listed as a BHO (browser help object) and would not allow me to delete it

    I tried to start windows one live family safety from the start menu, it says "Family Safety is disabled,…enable it…until done…you will not be able to browse internet"

    I started services.msc – found windows one live family safety , changed from disable to automatic, then started service and BAM!

    Home page, google started up.

    Way to go microsoft!

  • Thankyou so much!

    After hours of frustration my problem is finally fixed. I cant believe the solution took all of 2 minutes.

    Thankyou!

  • I tried the suggestions using cmd. I get the following message:

    Reseting Echo Request, failed.

    The requested operation requires elevation.

    Requesting Global, failed.

    The requested operation requires elevation.

    Reseting Interface, failed.

    The requested operation requires elevation.

    There's no user specified setup to be reset.

  • Another thing to check. I had this issue with one Vista laptop about a year ago. I had tried resseting WinSock and TCP/IP, uninstalling network adapter, tried other network adapters (wired and wirless)… nothing worked!!! I was getting ready to backup files and reload.

    The case on that machine eneded up being Norton Security Suite. Its firewall system or some other component had borked Vista's TCP/IP or network stack. Uninstalling the Norton suite fixed the problem! So, check for any type of 3rd party firewall, network, security, etc system that might be installed and remove it. Worth a shot.

  • Okay I have reset TCP/IP and winsock now and I am still having the same issue. I can surf as long as I use the IRL but can not use the URL. This is no fun can anyone help out on this issue?? Windows Vista this occured after downloading Google Chrome – I have already uninstalled Chrome. PLEASE HELP

  • I think it's rediculous that this problem has been dragging on for so long and there is no solution for it. It has wasted way too much of my time.

  • Bhaskara-

    Im right there with you. I've done everything I can think of as well as everything that the tech guys at Time Warner could think of. My IP won't reset after being restarted on their side, after disabling and enabling the network adapter and countless other things

  • Gilmore:

    Check your DNS settings, try putting in a different dns server like opendns (208.67.222.222) and see if that works. If you have a router check to make sure it's dns settings are correct too.

    IE problems:

    If you've just had a spyware infection, check to see if IE doesn't have a bogus proxy in the internet settings. Other applications use these settings too, and will experience similar problems.

  • Hey Steve,

    RIght click the CMD and select "run as admin"

  • can't seem to elevate my status to administrator, keeps giving me an error message telling me that I need to elevate, but the ctrl shift enter thingy ain't working

  • netsh winsock repair

    worked like a charm on my Vista x64 (after a few agonizing hours of trying all sorts of other things)

    tx a lot!

  • Is there a way to reset the TCP/IP on MAC computers? Because on my MAC 10.4.11 I can ping the google.com IP address but I cannot ping the URL. I believe if I can just reset the TCP/IP on my MAC it will definitely solve the problem.

  • Ya I HAVE THE SAME ISSUE WITH 3 VISTA MACHINES.. ITS A UNSOLVED ISSUE AS PER MS.

    Ive tried everything possible… my experience level is expert and frankly, i haven't been able to resolve the issue and out of 2 dozen vista laptops i have, 3 are doing this so its a random issue.

  • I tried everything around netsh on my vista to fix the – "page cannot be displayed" on my IE, which later on started happening on Firefox also. I'm only left with doing a complete reinstall of my OS.

    Pls. let me know if there are any other ways of fixing this :(

    -Bhaskara

  • Many, many thanks!! netsh int ip reset resetlog.txt worked on XP for me.

    Thanks again!

  • [...] you try resetting tcp/ip? Heres a link on how to do it. Had a similar problem resetting helped. Reinstall and Reset TCP/IP (Internet Protocol) in Windows Vista, 2003 and XP My Digital Life   #49     Today, 11:13 [...]

  • [...] Originally Posted by stormblast well i am having a weird problem with vista. everything seems to be working ok but the net is just working too slowly compared to windows xp. am using dual boot. msn messenger wont even connect. google talk connects. browsing is extremely slow. te or thl or erodov takes atleast 15seconds to open. no idea what the issue is. when i reboot into xp the connection is fine. os = vista ultimate x64 & windows xp x64 net = exatt 256k for config you can check the signature below. any help or inputs are welcome. Did you try resetting tcp/ip? Heres a link on how to do it. Had a similar problem resetting helped. Reinstall and Reset TCP/IP (Internet Protocol) in Windows Vista, 2003 and XP My Digital Life [...]

  • Hey!

    I've tried to do the same thing that Gen did but also did not work, I still can connect a P2P program and the MSN. So I was wondering do you have another solutions?Did you Gen get anything else? have you fixed your PC? Thanks a lot!

  • hello!

    i'm experiencing this same problem, and i tried to do this, but it still did not work. i've also tried the winsock which didnt work too. basically, the problem with my computer is that it detects the connection, but all of my other programs cannot connect to the internet for their updates and all. so do my web browsers. but what's puzzling is that my yahoomessenger, msnmessenger, and my torrent manager (Bitlord) can still access the internet. i'm actually using the browser function of bitlord right now to get to here. so i was wondering, do you have any idea what's going on and what other possible solutions there are? i'm on windows vista home premium. i hope you really could help me with this. thanks so much!

  • [...] surf or browse the Internet pages, the error may because also of ARP cache corruption, other than TCP/IP corruption or Winsock [...]

  • [...] also possible to reset TCP/IP Internet Protocol stack. Get help or contribute tips or tricks at My Digital Life [...]

Leave a comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Subscribe

Free email subscriptions
Get latest updates in email for free:

Translate This Page