Wednesday, July 22, 2009

How to recover from Winsock2 corruption

First of all we should know what does the winsock do for Internet:



We can say winsock is a agent between windows operating system and other internet applications such as browser’s,downloadmanager etc.. This is a programming interface and the supporting program that handles input/output requests for Internet applications in a Windows operating system. It's called Winsock because it's an adaptation for Windows of the Berkeley Unix sockets interface. sockets is a particular convention for connecting with and exchanging data between two program processes within the same computer or across a network.

Web browser or other internet apps<=> Winsock.dll<=> Tcp/Ip layers<=> Modem<=> The Internet and destination

Winsock2 Corruption



Is your internet connection is too low to comparing others? May be this problem due to winsock corruption! We can’t do all things for the word ‘Maybe’ so first determine is winsock is corrupted or not.

Let see how?

To determine the status of Winsock32, run netdiag /test:winsock command line. If there are any failed, remove corrupted Winsock2.

Test winsock via command line









Start=> Run=> Type cmd hit enter

Now type netdiag/test:winsock and hit the enter. This will make some test to winsock and gives result like passed or failed!If your winsock passes all tests you can determine winsock is not corrupted. Else is any one of the resuls was failed winsock is corrupted.

Recover from Winsock2 corruption



To recover from corrupted Winsock2, delete the corrupted registry keys, and then reinstall the TCP/IP protocol.
  1. Open regedit by Run dialog.

  2. In Registry Editor, locate the following keys, right-click each key, and then click Delete:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2

  3. When you are prompted to confirm the deletion, click Yes.
Note Restart the computer after you delete the Winsock keys.

  1. After the restart open network connections in your computer and then right click on your network connection and select Properties on that popup menu.

  2. Goto network tab and click install

  3. Click Protocol, and then click Add.

  4. Click Havedisk

  5. Type C:\Windows\inf, and then click OK.

  6. On the list of available protocols, click Internet Protocol (TCP/IP), and then click OK.

  7. Restart the computer.
Now your winsock has been recoverd! If you have any doupts ask me.
Is now your internet give response correctly????

1 comment: