Can’t Connect To Internet After Virus

You can’t connect to Internet after a virus infection. You’ve done everything you’re supposed to do. You have an up to date antivirus, you update Windows automatically, you do not participate in Peer to Peer network file sharing, and you never open email attachments. Yet you were still infected by a virus and it was hell to remove. Now that it’s gone, you suddenly realize you can’t connect to Internet after virus removal.

The following will help if you can’t connect to Internet after a virus removal has broken it.

Can’t Connect To Internet – Check Your Web Browser Settings

One of the ways a virus is able to re-direct your browser is to set up a Proxy Server connection. You need to make sure your web browser is configured properly. Otherwise, you’ll receive the familiar “Internet Explorer Cannot Display The Webpage” error. Do the following to look for a proxy server connection:

  • Open IE
  • Click Tools, Internet Options and then the Connections Tab
  • LAN Settings
  • Uncheck Proxy Server box if checked

can't connect to Internet

If a proxy server was setup, you should be able to connect to the Internet after you apply the change.

Repair Corrupt WinSock

Unfortunately, a corrupt Winsock usually follows the removal of some insidious viruses. You will need to take steps to repair it. In WIndows 7, you can click the “diagnose connection” option.

diagnose connectionIn Control Panel>Network and Sharing>Change Adapter Settings. Right-click your connections and select “Diagnose.” It might state there is a damaged Winsock and attempt repair it.

If it cannot repair it, you will need to manually edit the registry to fix the problem. The concept is to remove the Winsock entries and then re-install the TCP/IP protocol.

Fix Winsock By Editing The Registry

You will want to first backup the registry by creating a System Restore point. Go to Start>Programs>Accessories>System Tools>System Restore and create a restore point.

Next, open the registry by going to Start and typing regedit in the run dialog box. Hit OK. If a box pops up asking for permission, say YES. You should now be in the registry.

Note: doing something wrong in the registry can break your computer. Proceed with caution.

  1. In Registry Editor, navigate to locate the following keys, right-click each key, and then click Delete:
    HKEY_LOCAL_MACHINESystemCurrentControlSetServicesWinsock
    HKEY_LOCAL_MACHINESystemCurrentControlSetServicesWinsock2
  2. When prompted to confirm the deletion, click Yes.

Note Restart the computer after you delete the Winsock keys. Doing so causes the Windows Operating System to create new entries for those two keys. If you do not restart the computer after you delete the Winsock keys, the next step does not work properly.

Step 2: Install TCP/IP

  1. Right-click the network connection, and then click Properties.
  2. Click Install.
  3. Click Protocol, and then click Add.
  4. Click Have Disk.
  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.

15 Comments

  1. Alex January 22, 2011
    • David Purcell January 22, 2011
      • dympna August 2, 2012
        • Dave Dave August 2, 2012
  2. ashleylarson January 25, 2011
    • David Purcell January 25, 2011
  3. tiffany February 22, 2011
    • David Purcell February 22, 2011
  4. truman wickman May 19, 2011
  5. Guy July 29, 2011
  6. Mio December 10, 2011
  7. Tomas November 14, 2012
  8. April June 6, 2014
    • Dave Dave June 7, 2014
Advertisment ad adsense adlogger