Finally! I’ve had this annoying problem the past few days, where my Windows Vista machine would just misbehave when it came to my internet connection – and since I found the solution, I decided to share it. The thing is, all of a sudden, I would start getting “Page not found” errors in my browser, even though the connection was up and all the hosts responded to ping. I started digging for answers, and I found out that this issue was related to the TCP/IP stack Winsock settings, which may get corrupted, causing errors and problems with Internet connectivity.
Corrupt Winsock or Windows sockets configuration can be due to a lot of reasons (such as installation of a networking software, or due to virus, trojan or malware infection, or sometime even due to disinfection of spyware by security software). I did install quite a few networking tools lately, while trying out some security audit solutions – so that might have been it.
Anyhow, when Winsock corrupts, the networking errors that you may face include unable to surf the Internet with “Page cannot be displayed” error message in the browser, even though the DSL/ADSL/cable Internet connection is connected. Apparently sometimes, Windows Firewall/Internet Connection Sharing (ICS) service is terminated as well.
To repair and reset the Windows Vista Winsock Catalog:
- Click on Start button.
- Type Cmd in the Start Search text box.
- Press Ctrl-Shift-Enter keyboard shortcut to run Command Prompt as Administrator. Allow elevation request.
- Type netsh winsock reset in the Command Prompt shell, and then press the Enter key.
- Restart the computer.
What netsh winsock reset command does are it resets Winsock Catalog to a clean state or default configuration. It removes all Winsock LSP (Layered Service Providers) previously installed, including the potential malfunctioned LSP that causes loss of network packets transmission failure. So all previously-installed LSPs must be reinstalled. This command does not affect Winsock Name Space Provider entries.
Note: To check which LSPs installed on your Vista system, you can use netsh winsock show catalog command (in an elevated command prompt).