Winsock corruption - help

Posted on 2004-10-15
Last Modified: 2013-11-13
To all the Windows Experts,

I have a computer where its TPCIP stack is corrupt and will not connect to the network as before.  I have tried several things that have been mentioned here at experts exchange.  I have pretty much followed the suggestion from AlexJ in the following message:

with no success

I have also tried the winsockfix program as well.

I have also tried the LSPFix program though I did not understand it as well.  There was nothing to remove and I clicked finish like the documentation said so that it would renumber if necessary.  Feel free to make any additional suggestion on using this program.

Any other suggestions on how to fix a corrupt winsock?

Question by:Andrew54
LVL 65

Expert Comment

ID: 12324634
Hello Andrew54 =)

Have u checked this page yet ?? :)

Repair/Reset Winsock settings (Links)

Author Comment

ID: 12324754
When I used these commands:

netsh winsock reset catalog
netsh winsock show catalog

I received the following message:

WARNING: Could not obtain host information from machine [Gemini5] Some commands may not be available.
Class not registered.

What do you think that means?

LVL 65

Expert Comment

ID: 12324786
so that means u are using SP2 ??
and if u are using SP2, can u plzz tell me if u have Norton also and this problem started after applying SP2 ??

Author Comment

ID: 12324793
No service pack 2 on that machine.  I have not been able to connect using that computer since that pack came out.

I do use Norton Anti virus software.

LVL 65

Accepted Solution

SheharyaarSaahil earned 500 total points
ID: 12324806
then why are u using the Sp2 commands :)
check here >>

and now if i ask that can u plzz give me some background abt the exact problem u are having, will u mind :)
i mean i admit that the loss of connectivity is mostly due to winsock corruption.... but there can be exceptional cases also =)
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.


Author Comment

ID: 12324944
My build is (Build 2600.XPSP2.030422-1633: Service Pack 1)

>>then why are u using the Sp2 commands :)

It was the only thing new I saw on that link/page you sent (I overlooked it saying Service Pack 2)

>>check here >>

I should say that the winsockfix program did fix errors that I was receiving when I would use the command:
netdiag /test:winsock and now it all says pass.

>>and now if i ask that can u plzz give me some background abt the exact problem u are having, will u mind :)
i mean i admit that the loss of connectivity is mostly due to winsock corruption.... but there can be exceptional cases also =)

Ok I moved a computer from a location that was using DHCP to a place that was using assigned IP addresses.  After I moved the computer to the new location I put in the assigned IP address ( and it wouldn't connect to the local network or Internet.  Did some basic checking and the cabling worked with my laptop.  Did some additional testing and set the computer aside for a couple weeks.  Now we are using a DHCP server and I have some more time to work on the issue and here are some results now:

using ipconfig /release and /renew it times out to the DHCP server (use my laptop on the same cable and I have no problems)

I have checked the card and it is good as well.

One other thing to note: It has hung on boot up every since since we upgraded it from Windows 2000 to XP - it hangs after bootup when the desktop is loaded for about 1-2 minute and then you can access the start menu.  If you unplug it from the network then it loads fine.

If I do a ipconfig /all here is the information I get:

Windows IP Configuration

        Host Name . . . . . . . . . . . . : gemini5
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection 3:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC
(3C905B-TX) #2
        Physical Address. . . . . . . . . : 00-50-04-A0-5B-67
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        Autoconfiguration IP Address. . . :
        Subnet Mask . . . . . . . . . . . :
        Default Gateway . . . . . . . . . :
I find it odd that it cannot connect to the DHCP server and but it has an odd IP address that I have never seen before.  Our DHCP is set to assign 192.168.0. ip addresses.

Any other suggestions - thanks, Andrew

Expert Comment

ID: 12325412
Not sure about why you are having the problems you are having, but as far as the 169.254.x.x ip address, from my experience that is just a default IP showing there is an issue. For me any time a customer has 169.254.x.x running ipconfig /renew gives either:

blah blah "unable to contact your DHCP server request has timed out" or blah blah "Operation attempted on something that is not a socket"

Either way, whenever I get an issue I can't fix I just rip the network adaptors in safe mode (just to clear out some that could be hiding) then go back into Windows and run through the winsock fix manually and that fixes the majority of issues I have ever come accross.
LVL 65

Expert Comment

ID: 12325543
yeah uninstalling and reinstalling the card is a good idea :)
and one other thing is to check in Start>Run>services.msc that both DHCP Client and DNS Cleint are started and their Startup type is set to Automatic in right click>properties, and then use the ipconfig /release and ipconfig /renew commands !! :)

Expert Comment

ID: 12325552
HI Andrew,

That sounds like a odd issue you have there. So when your on the LAN you get locked up after 2-3 minutes of being logged in? Things that come to mind there are Virus or spyware. Not sure if you are using SMS perhaps you have a LAN based app that is timing out or is corrupt.  I have to ask, does this happen when you have a static IP? IF it were me I think I would start in safe mode and do the typical scan and clean. Maybe reinstalling your NIC or updating the drivers would be another step I would go I also noticed earlier you had some issues with WINSOCK, is this the same PC? Man that's just odd.

Let me know
LVL 15

Expert Comment

ID: 12325917
Did this happen after a certian date or since the beginning of the build on your PC?  Was anything done differently, or installed?



Author Comment

ID: 12332855
I upgraded to service pack 2 and that fixed it from hanging on startup but not TCPIP problem.

Even though I had uninstalled the card from devices and also tried the network card on another machine I replaced with another card and that fixed the problem.

Thanks for all the thoughts and suggestions,

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countClumps  challenge 10 90
XP driver for Dell Color MFP H625cdw printer needed 7 116
sumHeights  challenge 17 61
mapShare challenge 13 69
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now