How to determine and to recover from Winsock2 corruption in Windows Server 2003, in Windows XP, and in Windows Vista
On This PageSYMPTOMS When you try to release and renew the IP address by using the Ipconfig program (Ipconfig.exe), you may receive one of the following error messages. Message 1 An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket. Message 2An error occurred while renewing interface Local Area Connection: the requested service provider could not be loaded or initialized.
When you start Internet Explorer, you may receive the following error message:
The page cannot be displayed When you use your computer, you may receive the following error message:Initialization function INITHELPERDLL in IPMONTR.DLL failed to start with error code 10107 Additionally, you may have no IP address or no Automatic Private IP Addressing (APIPA) address, and you may be receiving IP packets but not sending them.When you use the ipconfig /renew command, you may receive the following error messages. Message 1 An error occurred while renewing interface local area connection: an operation was attempted on something that is not a socket. Unable to contact driver Error code 2. Message 2The operation failed since no adapter is in the state permissible for this operation. Message 3The attempted operation is not supported for the type of object referenced. In Device Manager, when you click Show Hidden Devices, the TCP/IP Protocol Driver is listed as disabled under Non-Plug and Play drivers, and you receive error code 24.When you create a dial-up connection, you may receive the following error message: Error 720: No PPP Control Protocols Configured
CAUSEThese issues may occur if the Winsock registry keys are damaged or corrupted. RESOLUTIONGuided Help to determine and recover from Winsock2 corruption
Manual steps to determine whether the Winsock2 key is corrupted for Windows XP usersTo determine if the symptoms are caused by a problem with the Winsock2 key,use one of the following methods.Method 1: Use the Netdiag toolTo use the Netdiag tool, you must install the Microsoft Windows XP Support Tools. To do so, follow these steps.Notes
Method 2: Use the Msinfo32 programNote Use this method only if you do not have a Windows XP Setup CD and you do not have Support Tools installed.
If there are more than ten sections in the list, you have third-party additions installed. If there are fewer than ten sections, there is information missing. Note These 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, each of the new sections that are created by installing NWLink IPX/SPX start with "MSAFD." Therefore, there are still only two sections that do not start with those letters.
If the Netdiag test fails, or if you determined that there is Winsock corruption by looking at Msinfo32, you must repair the Winsock2 key by using the steps in the next section. Manual steps to recover from Winsock2 corruptionWindows XP with Service Pack 2 instructionsTo repair Winsock if you have Windows XP Service Pack 2 (SP2) installed, type netsh winsock reset at the command prompt, and then press ENTER.Note Restart the computer after you run this command. Additionally, for computers that are running Windows XP SP2, there is a new netsh command that can rebuild the Winsock key. For more information, visit the following Web site: http://technet.microsoft.com/en-us/library/bb457156.aspx (http://technet.microsoft.com/en-us/library/bb457156.aspx) Warning Programs that access or monitor the Internet such as antivirus, firewall, or proxy clients may be negatively affected when you run the netsh winsock reset command. If you have a program that no longer functions correctly after you use this resolution, reinstall the program to restore functionality.Note If these steps do not resolve the problem, follow the steps in the next section. Windows XP without Service Pack 2 instructionsTo repair Winsock if you do not have Windows XP SP2 installed, delete the corrupted registry keys, and then reinstall the TCP/IP protocol.Step 1: Delete the corrupted registry keysImportant 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 For more information about how to back up 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 XP and Windows Vista
Step 2: Install TCP/IP
Manual steps to determine whether the Winsock2 key is corrupted for Windows Vista users
If there are more than ten sections in the list, you have third-party additions installed. If there are fewer than ten sections, there is information missing. Note These 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, each of the new sections that are created by installing NWLink IPX/SPX start with "MSAFD." Therefore, there are still only two sections that do not start with those letters.
If the Netdiag test fails, or if you determined that there is Winsock corruption by looking at Msinfo32, you must repair the Winsock2 key by using the steps in the next section. Manual steps to recover from Winsock2 corruption for Windows Vista usersWinsock corruption can cause connectivity problems. To resolve this issue by using Network Diagnostics in Windows Vista, follow these steps:
If the Network and Diagnostic tool was unable to find a problem, you can manually repair or reset Winsock. Manual steps to repair or to reset Winsock for Windows Vista users
Similar problems and solutions
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
936211 (http://support.microsoft.com/kb/936211/)
How to troubleshoot network connectivity problems in Internet Explorer
For more information about how to troubleshoot network and Internet connection problems in Windows Vista, visit the following Microsoft Web site:http://windowshelp.microsoft.com/Windows/en-US/Help/33307acf-0698-41ba-b014-ea0a2eb8d0a81033.mspx (http://windowshelp.microsoft.com/Windows/en-US/Help/33307acf-0698-41ba-b014-ea0a2eb8d0a81033.mspx) APPLIES TO
| Article Translations
|

Back to the top
and then click Network.
