Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Windows XP Winsock errors?

Posted on 2003-11-03
Medium Priority
Last Modified: 2013-11-13
I believe I am having some type of Winsock error on my Windows XP laptop. Everything was hunky dory until I recently installed a wireless network card. Now I can ping the web and my network but I'm not getting any DNS resolution.

I found this handy little app recommended from another site that supposedly fixes "winsock" errors by resetting TCP/IP some registry keys and the like but still no go. The funny thing is that this has happend on another box recently that I was working on with the same scenario but totaly different hardware and the "Winsock" program fixed it.

The common thread that I can come up with is ZoneAlarm and Me! Unfourtunately I can't take Me out of the picture and I've uninstalled Zonealarm and still nothing. I had this happen on my desktop once after uninstalling our VPN software and had to reinstall from scratch.

Anyone having this issue and running into similar problems? Any fixes?

Thanks, ampapa
Question by:ampapa
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
LVL 97

Expert Comment

ID: 9676069
   Use this script to reset winsock and TCP/IP stack at the same time

Winsock Fix

Author Comment

ID: 9677841
That is the handy little app that I've got. I've tried it already with no avail?

Any other ideas?

Accepted Solution

AlexJ earned 600 total points
ID: 9678069

Hi ,

This process will tell you if U've got a winsock corruption or not

Follow this completely.

How to determine whether the Winsock2 key is corrupted:

To determine if the symptoms are caused by a problem with the Winsock2 key:

Method 1: Use Netdiag

To use Netdiag the Support Tools must be installed
Use a retail XP CD and follow the following steps to install the Support Tools
 A) Insert the CD and browse to the Support\Tools folder
 B) Double-click on the setup file
 C) Go through the prompts until you get to the "Select An Installation Type"
 D) Select Complete and click Next

Once setup completes or if the Support Tools are already installed:
A) Open a command prompt.
B) Type "netdiag /test:winsock" (without the quotes) and press Enter

It will return the test results for several network components including the
For more details on the test, use /v at the end of the command.

Method 2: Use Msinfo32

NOTE: This method should only be used if they do not have a retail XP CD and the
Support Tools are not installed.

Start Msinfo32 from the Run line
Expand Components, then Network and click on Protocol
You will have ten sections inside Protocol and the section headings will include
the following names if the Winsock2 key is clean:
1.)   MSAFD Tcpip [TCP/IP]
2.)   MSAFD Tcpip [UDP/IP]
3.)   RSVP UDP Service Provider
4.)   RSVP TCP Service Provider
5.)   MSAFD NetBIOS [\Device\NetBT_Tcpip...
6.)   MSAFD NetBIOS [\Device\NetBT_Tcpip...
7.)   MSAFD NetBIOS [\Device\NetBT_Tcpip...
8.)   MSAFD NetBIOS [\Device\NetBT_Tcpip...
9.)   MSAFD NetBIOS [\Device\NetBT_Tcpip...
10.) MSAFD NetBIOS [\Device\NetBT_Tcpip...

If the names are anything different from above, we either have corruption or a
third-party add-on such as proxy software. If it is a third-party add-on, it will
be named in the first two sections in replacement of the letters: MSAFD.

If there are more than ten sections, then there are third-party additions, if there
are less then ten sections, we have information missing.  

NOTE: The above entries represent an installation with only the TCP/IP protocol
installed.  You can have a working winsock and see additional entries if another
protocol is installed.  For example, if you install NWLink IPX/SPX, you will see 7
additional sections, for a total of 17.  Below is an example heading of one of the
new sections:
  MSAFD nwlnkipx [IPX]
Also note that each of the new sections created by installing NWLink IPX/SPX start
with MSAFD, so there are still just two sections that do not begin with those

If the Netdiag test fails or it is determined there is winsock corruption by
looking at Msinfo32, we should repair the winsock2 key by following the steps

How to Recover from Winsock2 corruption:

Reinstall of the TCP/IP protocol to restore Winsock functionality

Step 1: Delete registry keys

A) Open Regedit from the Run line
B) Go to both of the following keys, export each of them, and then delete them:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock  and
C) Restart the computer

NOTE: It is important to restart the computer after deleting the Winsock keys.  
Doing so causes the XP operating system to recreate shell entries for those two
keys.  If this is not done, the next step does not work correctly.

Step 2: Install TCP/IP on top of itself

A) Open the properties window of the network connection
B) Click Install
C) Click Protocol, then Add
D) Click Have Disk
E) Type the path to the nettcpip.inf file, for example: c:\windows\inf, and click
OK (if you try to click Browse, then browse to the \inf folder, it may not show up
in the list).
F) You should now see "Internet Protocol (TCP/IP)" in the list of available
protocols.  Select it and click OK.
G) Restart the computer

When the computer reboots you will have functional Winsock keys.

NOTE: If the network connection properties contained more than the following three
items: Client for Microsoft Networks, File and Printer Sharing for Microsoft
Networks, and TCP/IP, then the additional items may need to be removed in order to
restore browsing.  If those items are needed they can be reinstalled.  The reason
for removing them is due to those items placing entries into the Winsock keys and
those entries will no longer be there.

Side effects and possible problems:

This method will restore basic functionality to the Winsock keys, but is not a
complete rebuild. On a default install of Windows XP the registry key:
alog9\Catalog_Entries - will have 11 sub-keys. When applying this method, the
Catalog_Entries will only have three sub-keys.  However, it works and there does
not appear to be any side effects.  The missing entries relate back to the:
Also, third-party proxy software or firewalls may need to be reinstalled.

All the best


Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

LVL 97

Expert Comment

ID: 9679965
If the problem is recent, do a system restore

How to Restore Windows XP to a Previous State (System Restore)

Author Comment

ID: 9682996

I ran the netdiag /test:winsock test and indeed the Winsock test..................: Failed with the following:

Failed to get UDPpacket size information. The error occourred was: The requested service provider could not be loaded or initialized.

Does that mean anything to you?


I did not create a restore point because I'm not sure at what point the Winsock error occourred. So I don't think that will work.

Expert Comment

ID: 9685083


The test result failed means that winsock components are damaged.

Need to perform winsock fix as suggested in my earlier post.

All the best


Let me know the outcome

Author Comment

ID: 9685864
Well after some trial and error I finally got out to the net.

After I reset the Winsock following AlexJ instructions I realized I was assigning the same IP to both my internal network card and my wirless network card. So I gave my Wirless card a new IP and off we went.

Does that make sense? Can 2 cards not hae the same IP even though 1 is not active? Could that be why I was getting a Winsock error?

Thanks for the help.

Expert Comment

ID: 9692480


winsock error do not come becoz of same IP on two cards. It comes as a result of winsock keys corrupt in the registry.
Yeah, two cards cannot have one local IP address, Iam not sure about ISP's IP but think that's not possible too.
IP for the card shud be unique .
Glad that u figured it out.

Thanks for the points


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

715 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