Microsoft KB Archive/318584

= You receive an &quot;Operation was attempted on something that is not a socket&quot; error message when you try to obtain an IP address =

Article ID: 318584

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

-



This article was previously published under Q318584



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
After you install a modem on your system, you may not be able to connect to the Internet. When you try to release and then renew the IP address, you may receive the following error message:

An operation was attempted on something that is not a socket.



CAUSE
This behavior may occur if the WinSocks library or the TCP/IP stack are corrupted.



RESOLUTION
To resolve this issue, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Click Start, and then click Run. In the Open box, type Regedit, and then press ENTER. Navigate to the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock

 On the Registry menu, click Export Registry File. In the File name box, type the name of the backup file; for example, type Winsock Registry key, and then click Save. Note the name of the folder in which the registration file is saved. Repeat steps 3 through 5 for the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2

</li> Delete the following keys from the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2

NOTE: Steps 3 through 6 backed up the two registry keys. You can use the backup files to restore the keys in the event that your computer displays unexpected behavior. For more information about how to restore registry keys from .reg files, search the Registry Editor Help files for the Import or export registry keys topic.

</li> Close the Registry Editor.</li> Locate the Nettcpip.inf file in %winroot%\inf, and then open the file in Notepad.</li> Locate the [MS_TCPIP.PrimaryInstall] section. Change the Characteristics = 0xa0 entry by replacing 0xa0 with 0x80. Save the file. Exit Notepad.</li> In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.</li> On the General tab, click Install, select Protocol, and then click Add.</li> In the Select Network Protocols window, click Have Disk.</li> In the Copy manufacturer's files from text box, type c:\windows\inf, and then click OK.</li> Select Internet Protocol (TCP/IP), and then click OK.

Note This step returns you to the Local Area Connection Properties screen. However, the Uninstall button is now available.</li> Select Internet Protocol (TCP/IP), click Uninstall, and then click Yes.</li> In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.</li> On the General tab, click Install, select Protocol, and then click Add.</li> In the Select Network Protocols window, click Have Disk.</li> In the Copy Manufacturer's files from text box, type c:\windows\inf, and then click OK.</li> Select Internet Protocol (TCP/IP), and then click OK.</li> <li>Restart your computer.</li> <li>Test your Internet connectivity.</li></ol>

Keywords: kberrmsg kbprb KB318584

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.