You are connected to the Wi-Fi, but when you open your browser, nothing loads. The page just spins forever.

Most people immediately unplug their router or call their internet provider. But 9 times out of 10, the problem isn't your router—it's your Windows computer.

Windows stores a "cache" of DNS records and network settings. When this cache gets corrupted (which happens often), your computer gets confused and stops connecting to the internet properly.

You don't need to download third-party network repair tools. Windows has two built-in commands that clear the confusion and reset your network stack in seconds.

Here is exactly how to do it.

Step 1: Open Command Prompt as Administrator

  1. Press the Windows Key.
  2. Type cmd.
  3. Right-click on Command Prompt and select Run as administrator.
  4. Click Yes if a User Account Control prompt appears.

Step 2: Flush the DNS Cache

Your computer keeps a list of websites you've visited to load them faster. If the IP address of a website changes (or your network glitches), this list becomes outdated.

Type this exact command and press Enter:

text

ipconfig /flushdns

What you will see: A small message saying "Successfully flushed the DNS Resolver Cache." This means Windows has wiped its memory of old network paths and will now look for fresh ones.

Step 3: Reset the Network Socket (Winsock)

If flushing the DNS didn't work, the deeper "Winsock" (Windows Socket) catalog might be corrupted. This is the core of how Windows talks to the internet.

Type this exact command and press Enter:

text

netsh winsock reset

What you will see: A message saying "Successfully reset Winsock catalog. You must restart the computer to complete the reset."

Step 4: Restart Your PC

You must restart your computer for the Winsock reset to take effect. When your PC boots back up, your network connection will be completely fresh and clean.

Why this works

When you run these commands, you are essentially telling Windows: "Forget everything you think you know about the internet. Start over from scratch." It fixes issues with web pages not loading, Wi-Fi saying "Connected, no internet," and even some online game connection errors.

It is completely safe, requires no downloads, and takes less than 30 seconds. Next time your internet drops, run these two commands before you do anything else.