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
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.
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.
- In Registry Editor, navigate to locate the following keys, right-click each key, and then click Delete:HKEY_LOCAL_MACHINESystemCurrentControlSetServicesWinsockHKEY_LOCAL_MACHINESystemCurrentControlSetServicesWinsock2
- 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
- Right-click the network connection, and then click Properties.
- Click Install.
- Click Protocol, and then click Add.
- Click Have Disk.
- Type C:\Windows\inf and then click OK.
- On the list of available protocols, click Internet Protocol (TCP/IP), and then click OK.
- Restart the computer.