When you try to connect your computer to a network, you may receive the following error message:
An operation was attempted on something that is not a socket.
This symptom occurs on a computer that obtains an IP address from a Dynamic Host Configuration Protocol (DHCP) server. If you assign a static IP address to your computer, you do not receive this message.
This issue may occur if you have a third-party product installed that uses Windows sockets and also uses the ipconfig, release, and renew commands. The Windows sockets registry subkeys may be corrupted.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
To resolve this problem, use either of the following methods.
We recommend that you use Method 1 if either of the following conditions are true:
You only have one computer.
You do not have access to a computer that is similar to the first computer where you experienced the symptoms that are described in the "Symptoms" section. A computer that is similar to the first computer is another computer that has the same operating system version and a similar hardware configuration.
Use Registry Editor to export and delete the Winsock and Winsock2 registry subkeys, and then remove and reinstall TCP/IP on Microsoft Windows 2000 or Microsoft Windows XP. To do this, follow these steps.
Export and delete the corrupted registry subkeys
Insert a floppy disk in the floppy disk drive of the computer whose registry entries you are exporting.
Click Start, click Run, type regedit, and then click OK.
Locate and then click the following registry subkey:
If you are correcting this problem on several computers and you have access to a working computer with the same operating system version and a similar hardware configuration, we recommend Method 2.
To resolve this issue, delete the corrupted registry entries, and then replace them with the registry key information that you exported from a computer that has a working installation of TCP/IP. To do this, follow these steps.
Delete the corrupted registry entries
On the computer that has the corrupted registry entries, follow these steps:
Click Start, click Run, type regedit, and then click OK.
In Registry Editor, locate and then click the following registry subkey:
Right-click Winsock, and then click Delete. When you are prompted to confirm the deletion, click Yes.
Right-click Winsock2, and then click Delete.
When you are prompted to confirm the deletion, click Yes.
Export the registry entries to a floppy disk
On the computer that has a working installation of TCP/IP, follow these steps.
Note The computer that you are importing the registry entries from must use the same version of Windows and be either similar to or a duplicate of the computer that is experiencing the symptoms that are described in the "Symptoms" section.
Insert a floppy disk in the floppy disk drive of the computer that has the registry entries that you are exporting.
Click Start, click Run, type regedit, and then click OK.
In Registry Editor, locate and then click the following registry subkey and then click Winsock:
In the Save in box, click 3½ Floppy(A:), type a name for the file in the File name box, and then click Save.
Click Winsock2, click File, and then click Export.
In the Save in box, click 3½ Floppy(A:), type a name for the file in the File name box, and then click Save.
Note Each .reg file that you save must have a different name.
Quit Registry Editor.
Import the registry entries from the floppy disk
On the computer that had the corrupted registry entries, follow these steps:
Insert the floppy disk that contains the .reg files in the floppy disk drive of the computer that is experiencing the symptoms that are described in the "Symptoms" section.
Start Windows Explorer, click My Computer, and then double-click 3½ Floppy(A:).
Double-click each .reg file that you created and saved to the floppy disk in the "Export the registry keys to a floppy disk" section.
Click Yes when you are prompted to add information to the registry.
Click OK when you receive the message that the information is successfully entered in the registry.
These methods restore basic functionality to the Winsock and the Winsock2 subkeys. You may have to reinstall some third-party proxy software or firewalls.