When a browser works but Outlook fails, or when Wi-Fi is connected but says "No Internet," the issue rarely lies with your router. Usually, the Windows network stack (TCP/IP or Winsock layers) has become corrupted by VPN software, proxy changes, or malware.
1. The DNS Cache: Flushing and Registering
Windows caches DNS resolutions locally to speed up browsing. If an IP address changes, your PC may hit the cached (wrong) IP, causing connection timeouts.
ipconfig /flushdnsThis command instantly wipes the local cache. If your PC is failing to self-assign a local hostname properly on an office network, force it to re-announce itself:
ipconfig /registerdns2. The Winsock Catalog Reset
The Windows Sockets API (Winsock) handles data requests from applications (like Google Chrome) and routes them to the network. Third-party firewalls and VPNs inject Layered Service Providers (LSPs) into Winsock. If a VPN crashes or uninstalls improperly, it leaves a dead LSP in the catalog, severing all internet access.
netsh winsock resetThis surgically removes all third-party LSPs, restoring the Winsock catalog to a clean Microsoft default state. A reboot is mandatory after this command.
3. Rebuilding the TCP/IP Stack
If your assigned IP address begins with `169.254.x.x` (APIPA), your PC has failed to communicate with the DHCP server. If resetting the adapter doesn't work, the TCP/IP core itself might be corrupted.
netsh int ip resetThis command rewrites two critical registry keys (SYSTEM\CurrentControlSet\Services\Tcpip\Parameters and SYSTEM\CurrentControlSet\Services\DHCP\Parameters), effectively reinstalling TCP/IP without needing an installation disk.
4. Fixing the "Network Reset" Bug in Windows 11
Sometimes, using the GUI "Network Reset" button in Windows 11 completely breaks the network adapter drivers. To fix this, open Device Manager, expand Network adapters, right-click your Wi-Fi/Ethernet adapter, and select "Uninstall Device". Do NOT check the box to delete the driver. Click "Action -> Scan for hardware changes" and Windows will safely remount the adapter.