How to fix Winsock damage if you cannot access the Internet

Source: Internet
Author: User
Tags knowledge base

Today, after the limm laptop in the lab uses the "perfect uninstallation" software to uninstall the rogue "baidubar", not only does it not unmount but cannot access the Internet, it always prompts "No TCP/IP protocol is installed on the local machine ", open the "Network/properties" TCP/IP and the IP address is still there. uninstall it first and try to reinstall it. It hasn't been uninstalled for a long time, later, I learned that XP Cannot uninstall the TCP/IP protocol, but the methods for resetting the TCP/IP stack are as follows:

Run-> cmd press ENTER netch press ENTER netsh interface> ip press ENTER netsh interface IP> Reset C:/ret. Log ret. log is a record file.

This method does not work. It took about half a day to know that it was not a TCP/IP issue but that Winsock was damaged. From Microsoft support

How to determine whether Winsock2 is damaged and recover from the damage Important: This article contains information about how to modify the registry. Before modifying the registry, you must back up the registry and know how to restore the Registry in case of a problem. 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 (http://support.microsoft.com/kb/256986/) Microsoft Windows registry description


Symptom

When you try to use the ipconfig program (ipconfig.exe) to release or update the IP address, 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 2

An error occurred while renewing interface local area connection: the requested service provider cocould not be loaded or initialized.

When you start Internet Explorer, you may receive the following error message:

The page cannot be displayed

When using a computer, you may receive the following error message:

Initialization function inithelperdll in ipmontr. dll failed to start with error code 10107

In addition, you may not have an IP address or an automatic private IP address (apipa). You may be receiving an IP packet instead of sending it.

UseIpconfig/RenewCommand, you may receive the following error message.

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 2

The operation failed since no adapter is in the state permissible for this operation.

Message 3

The attempted operation is not supported for the type of object referenced.

In Device Manager, When you click show hidden devices, "TCP/IP protocol driver" is listed in the disabled status under "plug-and-play drivers", and you will receive error code 24.

When creating a dial-up connection, you may receive the following error message:

Error 720: No PPP control protocols configured

Cause

If the Winsock registry key is corrupted, these problems may occur.

Solution

Manual steps to determine whether Winsock2 is damaged


To determine whether the symptom is caused by a problem of Winsock2, use the following method.

Method 1: Use netdiag


To use the netdiag tool, you must install the Microsoft Windows XP support tool. To do this, follow these steps.

Note:

If you have installed the support tool, go to step 2 in this section.
If the support tool is not installed and the CD is not installed on Windows XP, go to method 2.
1. Insert Windows XP installation CD, and find the support/Tools Folder.
2. Double-click the "setup.exe" file.
3. Follow the steps on the screen until the "Select installation type" Screen appears.
4. On the "Select installation type" screen, click "complete", and then click "Next ".

After installation, follow these steps:

1. Click Start, click Run, TYPE Command, and click OK ".
2. Type netdiag/test: WinSock, and then press Enter.

The netdiag tool returns test results for several network components, including Winsock. For more information about the test, use/V: netdiag/test: Winsock/V at the end of the netdiag command.

Method 2: Use the msinfo32 Program

Note:: This method is used only when CD is not installed on Windows XP and no support tool is installed.

1. Click Start, click Run, type msinfo32, and click OK ".
2. Expand "components" and "network", and then click "protocol ".
3. The "protocol" contains 10 sections. If Winsock2 is not damaged, the section header will contain the following names:

Msafd TCPIP [TCP/IP]
Msafd TCPIP [UDP/IP]
Rsvp udp Service Provider
Rsvp tcp Service Provider
Msafd NetBIOS [/device/netbt_tcpip...
Msafd NetBIOS [/device/netbt_tcpip...
Msafd NetBIOS [/device/netbt_tcpip...
Msafd NetBIOS [/device/netbt_tcpip...
Msafd NetBIOS [/device/netbt_tcpip...
Msafd NetBIOS [/device/netbt_tcpip...

If the name is different from the name in the list, it indicates that Winsock2 is damaged or a third-party add-on, such as agent software, has been installed.

If a third-party add-on is installed, the name of the add-on replaces the letter "msafd" in the list ".

If there are more than 10 sections in the list, it indicates that a third-party add-on is installed.

If there are less than 10 sections, the information is missing.

Note:: These entries represent the installation of only the TCP/IP protocol. You may have a working Winsock. If another protocol is installed, you may see other entries. For example, if nwlink IPX/SPX is installed, you will see 7 more sections. There will be 17 sections in total. The following is a section header example of a new section:

Msafd nwlnkipx [IPX]

In addition, each new Section created when nwlink IPX/SPX is installed starts with "msafd. Therefore, only two sections do not start with these letters.

If the netdiag test fails, or you check msinfo32 To Make Sure That Winsock is damaged, you must use the steps in the next section to fix Winsock2.

Manual steps to recover from Winsock2 corruption


Windows XP with Service Pack 2


To fix Winsock when Windows XP Service Pack 2 (SP2) is installed, enter netsh Winsock reset at the command prompt and press Enter.

Note:: Run this command to restart the computer. In addition, you can use the newNetshCommand to recreate the Winsock entry. For more information, visit the following website:

Http://www.microsoft.com/china/technet/prodtechnol/winxppro/maintain/sp2netwk.mspx

Warning: RunningNetsh Winsock ResetDuring command execution, programs that access or monitor the Internet (such as anti-virus programs, firewalls, or proxy clients) may be adversely affected. If a program cannot work properly after this solution is used, reinstall the program to restore functionality.

Note:: If these steps cannot solve the problem, perform the steps in the next section.

Windows XP without Service Pack 2


To repair Winsock without installing Windows XP SP2, delete the corrupted registry key and reinstall the TCP/IP protocol.
Step 1: Delete the corrupted registry key

Warning: If the registry is incorrectly modified using the Registry Editor or other methods, it may cause serious problems. These problems may need to be solved by re-installing the operating system. Microsoft cannot guarantee that you can resolve these problems. You are at your own risk to modify the registry.

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, edit, and restore the Registry in Windows XP and Windows Server 2003
1. Click Start, and then click Run ".
2. In the open box, type regedit and click OK ".
3. In the Registry Editor, right-click the following items and click Delete ":

HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/winsockhkey_local_machine/system/CurrentControlSet/services/Winsock2
4. When the system prompts you to confirm the deletion, click "yes ".

Note:: After deleting the Winsock entry, restart the computer. This allows the Windows XP operating system to create new shell entries for these two items. If the computer is not restarted after the Winsock entry is deleted, the next step fails.
Step 2: Install TCP/IP


1. Right-click the network connection and click "properties ".
2. Click Install ".
3. Click protocol, and then click Add ".
4. Click "Install from disk ".
5. Type C:/Windows/INF and click OK ".
6. In the available protocols list, Click Internet Protocol (TCP/IP), and then click OK ".
7. Restart the computer.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.