Trashed tcp on your nic?

Have you suffered a slow xp start and no working nic? Ipconfig will not work? Have you ever suffered a nic that would not repair in XP? You get errors suggesting that it cannot see the tcp. I started disabling antivirus services with no joy. I found this comment at http://www.bangsar.net/mt-archives/000279.html His comment lets you uninstall the tcp so that you can do a fresh install of the tcp.

Note that this did not solve my problem but it is sort of neat that you can yank out the tcp with an edit of the nettcpip.inf.

Quote:

Problem:
Can't connect to the network. Your connection says you are connected, but no packets go through at all. Your connection's "Connection Status" info does not show anything about your IP address. Clicking on Repair gives you "Failed to query TCP/IP settings" or something like that.

Solution:
Restart your PC into Safe Mode with Networking.

Edit your registry. Delete the following keys:-
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock2

Open the nettcpip.inf file in your %winroot%/inf folder (%winroot% is usually c:/windows).
Find the [MS_TCPIP.PrimaryInstall] section. Change the Characteristics value from 0xA0 to 0x80.

Open the properties of the network connection you want to fix. In the General tab, click on the Install button. Click on the Have Disk button, and point the location to %winroot%/inf. After that select TCP/IP (not version 6).

Now you would notice that you can uninstall TCP/IP! Do that, then restart the PC.

Go back to your network connection, and install TCP/IP again as per the above. After another reboot, you should be up and running.

Endquote

Personally I could not get this to work last time I tried on XP. I hope you have better luck. I also noted that the XP network repair tool may yank out the ISA 2004 firewall client stuff. Just run the firewall clinet repair or install it again to fix that problem after you did your reboot.

I suffered a server that refused to startdhcp, dns and wins. I beat on the server a long time remove phantom nics, reboots and even a full restore. On that server I exported the winsock and winsock2 keys from the registry. I deleted those keys. I rebooted the server. I imported those keys. I rebooted the server and all was well. Pretty goofy but it worked and I had nothing to lose. Your mileage may vary and you better have good backup of the whole server before you do this kind of crazy stuff.

Note from DJ

Quote

This along with a TCP/IP reset using the netsh command:

netsh int ip reset resetlog.txt

Did the trick for me...

This happens to my system frequently and usually a system restore from a checkpoint from the previous night fixes it. This time not.

endquote

 

 

Comments

# jim said:

This along with a TCP/IP reset using the netsh command:

netsh int ip reset resetlog.txt

Did the trick for me...

This happens to my system frequently and usually a system restore from a checkpoint from the previous night fixes it. This time not.

Tuesday, July 12, 2005 9:17 AM
# jim said:

I spent 20 hours trying to fix this and 2 almost sleepless nights. I have also been battling it off and on for over 6 months on my tecra S2 laptop from Toshiba. This fixed it up immediately. I also uninstalled XP SP@ and my Cisco VPN client which I noticed were both causing occasional network problems.

Thanks again

Thursday, October 20, 2005 10:38 PM
# jim said:

Got the same error message ("Failed to query TCP/IP settings") but it was after I've installed Forti Client that was incompatible with my anti-virus software.

I did a system restore and it worked.

HOW TO DO A SYSTEM RESTORE:
1. Click Start, point to All Programs, point to Accessories, point to System Tools, and then click System Restore
2. Click Restore my computer to an earlier time, and then click Next.

I found it out from Microsoft support:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q286562&ID=KB;EN-US;Q286562&

Can be useful to some people.

Friday, October 28, 2005 11:52 AM
# Terry Hargraves said:

I had precisely this "Failed to query TCP/IP" error on a notebook. Couldn't do a system restore because the user had already been monkeying with it for months.

Uninstalling and reinstalling TCP/IP per these instructions did the trick!!

Thank you, my New Year's Day holiday can now be resumed!

Monday, January 02, 2006 4:30 PM
# Evil Beezle said:

Tried the above and it did allow me to uninstall TCP/IP - Neat trick!
But overall this didn't fix the problem.

Turned out putting a different network card fixed the issue. (NEC worked, Davicom didn't!)

Get a decent network card - The Davicom is now in the bin.

Al

Saturday, February 25, 2006 6:50 AM
# Kris said:

Hi...
I tried the registry changes mentioned above, to no avail. I restored to an earlier date, twice, to no avail. Been trying to fix the "failed to query TCP/IP" error off and on for over a week, maybe two. Finally, on a hunch I'd had since the start, I uninstalled about 8 Windows XP updates that installed automatically around the time I lost my internet connection, and LO AND BEHOLD, I had my tcp/ip back! I didn't do the uninstall one at a time, so I don't know which one it was, but here are the numbers: KB916281, KB914389, KB917953, KB917344, KB917734, KB911280, KB918439
Pass it on, Microsoft screws us again!!!
Kris

Monday, July 10, 2006 9:57 PM
# Eric said:

I had a user with a "network problem".  When I went to his PC and tried an ipconfig /all - nothing would be listed except "Windows IP Configuration" - no adapters or anything else listed.   I tried repairing a network connection and got the "Failed to query TCP/IP settings" mentioned above.  I was quite surprised that TCP/IP couldn't be uninstalled/re-installed natively.  The steps listed above allowed me to do this and fixed my problem.  What caused the problem is unknown but the user did state that it seemed to start happening after he unistalled a Beta version of Visual Studio .NET.

Thursday, July 20, 2006 9:09 AM
# ubiquity said:

Before trying that lengthy fix.  Try the simple solution at this URL: http://kentwell.net/glenn/14

It says, "...all I did was go into the Properties for the Local Area Connection and untick TCP/IP…click OK and then go back in and tick TCP/IP again. This must reset the settings for the TCP/IP protocol on that network interface.".

I tried that and it worked for me!

Sunday, July 23, 2006 1:53 AM
# Gary said:

I tried this and sure enough, I'm up and running again.  Big thanks.  Now I just need to get rid of the new second copy of XP that I installed before finding this.

Wednesday, July 26, 2006 10:26 AM
# Debbi said:

I worked on two computer in the past two weeks with the same problem. I stumbled on your solution for the first computer and it worked great. Unfortunately I did not bookmark your site and spent a couple days using other solutions I found on the net--resetting TCP/IP or restacking it. Nothing worked. I finally found your site again when I did a google search on "nettcpip". Followed your instructions and it worked like a charm! I cant understand why this isnt a standard solution or one offered by Microsoft support.

Thank you so much. Your site is bookmarked now. :)

Wednesday, August 02, 2006 9:54 AM
# Mark said:

You guys Rock! I've been batteling for several days now off and on after ghosting to a new hard drive to fix the tcp/ip bug that disables the netcard, and this fix worked. Microsoft themselves are unaware how to fix this error as far as I can see.

Monday, September 11, 2006 8:20 PM
# Justin said:

or if you have sp 2 you could skip alot of it with the command

netsh winsock reset

Monday, October 23, 2006 8:05 PM
# Jerry said:

netsh int ip reset resetlog.txt worked for me !

Thanks for that I was starting to despair...

Thursday, December 07, 2006 5:33 AM
# slugg0 said:

The tip from ubiquity worked for me:

"go into the Properties for the Local Area Connection and untick TCP/IP…click OK and then go back in and tick TCP/IP again. "

You must reboot for the changes to take full effect.

The problem occurred after installing drivers for a $20 USB camera purchased at a local drug store. Be careful what you install on your machine!

Thursday, July 19, 2007 6:29 PM
# Centaurette said:

I was having the 169.254.x.x/255.255.0.0/not able to renew, etc, etc issue.  The tricks listed here didn't work at all.  I'm sure the inf files were bad.  What worked was 1) copying onto disk the inf folder from the desktop pc that is able to  connect to the net with no problem 2) deleting the Winsock and Winsock2 from the registry 3) deleting the inf folder from the non-internet laptop 4) copying the inf folder from disk to the laptop 5) went into the connection I wanted to fix 6) clicked on Properties and then Install 7) clicked on Protocol, then Have Disk, then typed c:\Windows\inf 8) restarted the computer.  Somewhere along the line, doing that disabled the IPv6 Windows Firewall Driver...even though I had the Windows Firewall set to off.  I used ipconfig /all just to verify and lo and behold...success!!!  Finally!!  I had read on another site about someone who just replaced a couple files and registry keys, but I figured replacing the whole folder couldn't hurt since they were both XP.  What doesn't matter with this fix is whether one is XP Pro and one is XP Home...at least that I can tell.  In case I'm wrong, I took the inf folder from Home pc to Pro laptop.

Wednesday, August 01, 2007 8:13 AM
# drcollins said:

I cannot get tcpip to uninstall.  I have tried all of the above instructions with no avail.  I am unable to run restore.  24 hrs of head scratching and eyes burning.  I have replaced the nic  Any other hints would be apprectiated.

Saturday, August 04, 2007 11:15 AM
# sfnorris said:

I have tried all of the above with no joy. I'm going to install another hard drive so I can retrieve email etc. and start over.

ARRRGGGGG!

Thursday, August 09, 2007 4:08 PM
# Gadfly said:

Reinstalling TCP/IP as per the directions did indeed revive my ability to connect to the net.

I usually have a backup copy of my C: disk so that in cases of disastrous failures I can reinstall.  In this case the older version worked until some updates were installed and the  problem returned. On that copy reverting to a restore point a day earlier solved the problem.

I then reinstalled the originally failed copy of C: - only to find there were no restore points on it - so I reinstalled TCP/IP and that solved the problem on that copy.

It really appears that MS update was the culprit in both cases.

Gad

Sunday, August 12, 2007 10:28 PM
# Gadfly said:

BTW the ticking and unticking of TCP/IP internet protocol did not work for me.

Gad

Sunday, August 12, 2007 10:33 PM
# JK said:

When I tried reinstalling the tcp/ip on the system, I get the following error: "Could not add the requested component. the error is: an extended error has occurred." Any clue how to get around this?

Sunday, August 19, 2007 4:27 PM
# Girkers said:

Thanks for this worked a treat.

Friday, August 24, 2007 1:22 AM
# BadGirl said:

I also had encountered this problem on my mom's laptop.  I think it was due to a virus corrupted some network files.  I'm not sure but I did a restore and it's back up.  Thanks

Saturday, August 25, 2007 11:17 AM
# sefy said:

You'r the real man . . . You'r great solution work for me . . . You'r the best . . . .[ I'm so (edited) happy ]

Sunday, September 09, 2007 5:06 AM
# Tony Sahajlain said:

Dude, thanx a lot for putting on web. I wasted a night and a day getting my internet up and running. It got fixed after i followed the steps mentioned on this post.

\ooo/

Tony - The "M E T A L H E A D"

Monday, September 17, 2007 11:08 AM
# HAPPY! said:

Fabulous!  I had my doubts, but it worked.  Thank you so much, I know you just saved me a ton of time!  FYI, I tried the comments from 'ubiquity', 'Jerry' and 'Justin' first because they looked easier....nothing.  But the original post worked like a charm.

Tuesday, September 18, 2007 12:06 AM
# Stuart said:

Did all the steps mentioned and it didnt work, but then checked the services, the DHCP client service wouldnt start due to dependincies.

windowsxp.mvps.org/dhcp.htm

found that the TCPIP.sys was missing from the system32 folder.  

all working now.

Monday, September 24, 2007 5:23 PM
# Victor said:

Stuart - THANKS A MILLION

I tried a ton of sites and tips to no avail.  

This stopped DHCP Service was an awesome symptom description!

Some spyware/virus replaced the tcpip.sys file in the

system32\drivers and the system32\dllcache folder.

Thanks to you and the link that you provided, everything is back to normal!!!

Tuesday, October 30, 2007 9:04 PM
# Robert said:

Just uninstall network card in device manager, restart PC and reinstall network card, job done.  Works for me

Friday, December 07, 2007 2:21 PM
# Billy said:

Tried the original solution and it did allow me to uninstall TCP/IP - Pretty cool.

netsh int ip reset resetlog.txt

netsh winsock reset

But overall this didn't fix the problem.

I knew that the problem was related to one of the Security Updates for Windows XP.

I identified Security Update for Windows XP (KB917953) as the culprit.

Use Windows Explorer to navigate to the C:Windows "$NtUninstallKB917953$" folder and use the uninstall utility in the folder.

Note:  I noticed two other folders related:

"$NtUninstallKB917953$(2)"  and

"$NtUninstallKB917953_0$"

I did not have to do anything using those in order to fix the problem.

Saturday, January 05, 2008 7:28 PM
# Old Techie said:

Spent about a day fighting this one until I found this post. Original susgestion worked after trying all the easy stuff.

Tuesday, January 15, 2008 10:22 PM
# Frank said:

Unticking and reticking TCP/IP did not work.  Before trying the harder stuff, I uninstalled Windows XP SP3.  That fixed it.  Originally, SP3 gave me an MSWSOCK.DLL error.  Trying to fix that, I got the QUERY TCP/IP error.  SP3 is incompatible with the SiS 900 PCI Fast Ethernet Adapter on my MB or my Linksys WRT150N wireless-n router.

Thursday, October 09, 2008 12:05 PM
# Zauberer said:

I only have to say… Thank You!!!, Thank You!!!, Thank You!!!, So much…

After too much Googling finally a real solution… My wireless adapter was only working with fixed IP address since a virus changed the DNS and my computer has never the same. The command “netsh int ip reset” does not help so much in most of the cases.

Tuesday, December 02, 2008 11:08 PM
# scoop said:

Thanks! The original directions, plus replacing the tcpip.sys with a copy from an XP machine (both XP Pro, SP2) with healthy networking, restored TCP/IP to sanity.  The netsh commands mentioned in the original directions and comments may also have had a hand in the fix.  I tried those after following the procedure but before replacing tcpip.sys.  Extra thanks to Stuart for the final piece of the puzzle!

Tuesday, August 25, 2009 9:07 PM
# me said:

Still works! Awesome fix. Thanks!

Sunday, September 27, 2009 12:44 PM
# Nandini said:

Hi,

This worked for me  on Windows 2003 :) :)

Thank you very much.

Tuesday, October 06, 2009 3:24 AM
# michael said:

I pray to god you live for ever.. I almost beat my pc with a hammer before i tried what u said..

Sunday, December 13, 2009 12:14 AM
# Shash said:

Thanks Robert!!

Just uninstall network card in device manager, restart PC and reinstall network card did the job.

Sunday, December 20, 2009 5:19 PM
# How to reinstall tcp/ip in XP | harryo.com said:

Pingback from  How to reinstall tcp/ip in XP | harryo.com

Monday, December 26, 2011 12:44 AM

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above: