Technical Anshu
Tutorials Blog
🔧 Network Fix

Reset Network Stack and Flush DNS in the Right Order

WiFi is connected but websites will not open, or the internet works for a while and then breaks in a new strange way every day. When small fixes stop helping, reset the whole network stack — in the right order.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 10 minute fix with one restart
🎥 These ipconfig and netsh commands are in the 60 Windows Commands video — watch the network section step-by-step

Scattered tips tell you to "flush DNS" or "reset winsock" as if they were the same medicine. They are not — each command repairs a different layer of the network stack, and running them in sequence is the closest thing Windows has to a full network factory reset. This guide gives the complete sequence in the right order: renew the address, clear the DNS cache, reset the Winsock catalogue, reset the TCP/IP stack, and restart. It is the fix technicians run when a PC’s networking has been damaged by malware removal, a bad VPN or driver experiment, or months of accumulated tinkering.

Command Prompt (Admin) — the reset sequence running
C:\> ipconfig /flushdns Successfully flushed the DNS Resolver Cache. C:\> netsh winsock reset Successfully reset the Winsock Catalog. You must restart the computer in order to complete the reset. C:\> netsh int ip reset Resetting Global, OK! Resetting Interface, OK! Restart the computer to complete this action.

👆 The success messages of the last three steps. Every line should end cleanly — an error here usually means the Command Prompt was not opened as Administrator.

1

Before You Reset — Save Two Things

  1. This reset returns network settings toward defaults. If the PC uses a manually set static IP or DNS, note the values first: run ipconfig /all and save or photograph the IPv4 Address, Gateway and DNS Servers
  2. Custom VPN and virtual adapters may need their software reopened or reinstalled afterwards — normal, but know it before starting
  3. Open Command Prompt as Administrator — the netsh resets refuse without it
2

Steps 1 to 3 — Fresh Address and Clean DNS Cache

The address and name layers first:

  1. ipconfig /release — gives up the current IP address. Your connection drops at this moment; that is expected
  2. ipconfig /renew — asks the router for a fresh address and fresh settings. If renew fails or returns a 169.254 address, the PC is not really reaching the router — check the cable or WiFi before blaming Windows
  3. ipconfig /flushdns — empties the cache of website name lookups. Stale or poisoned entries are a classic cause of "one site will not open while everything else works". Success reads Successfully flushed the DNS Resolver Cache
3

Steps 4 and 5 — Winsock and TCP/IP Reset, Then Restart

Now the deep layers — these two are the real stack reset:

  1. netsh winsock reset — rebuilds the Winsock catalogue, the list of handlers every app uses to reach the network. Malware, old firewalls and VPN tools corrupt this catalogue; the symptom is one PC where "nothing connects in any app"
  2. netsh int ip reset — resets the TCP/IP stack itself to its installed state, rewriting its registry settings
  3. Restart the PC — both resets finish only at reboot. Skipping the restart is the most common reason people report "the reset did nothing"
  4. After the restart, reconnect to WiFi if needed and test in this order: open a website, then run ping 192.168.1.1 (your gateway from ipconfig) if anything still fails
🔴 If the full sequence changes nothing, be honest about what that means: the Windows network stack is now known-good, so the fault is outside it — the router, the cable or port, the WiFi adapter hardware, or the internet provider. Test another device on the same network. If it fails too, no command on this PC was ever going to fix it.

🎥 Watch the Complete Video

Every command in this sequence is unpacked in the video’s network section, plus the diagnostic commands to run before and after.

▶️ Watch Full Video
❓ Frequently Asked Questions

Will the network reset delete my saved WiFi passwords?

The full Settings-based Network Reset does remove saved networks, but the command sequence in this guide — release, renew, flushdns, winsock and IP reset — does not delete saved WiFi profiles. Your networks reconnect normally after the restart, though you may need to select your WiFi once.

What is the difference between flush DNS and winsock reset?

Flushing DNS clears only the cache of website-name lookups — it fixes wrong or stale addresses for sites. Winsock reset rebuilds the catalogue of network handlers all applications share — it fixes the deeper "no app can connect at all" breakage. Different layers, different symptoms.

The reset worked but the problem returned after a few days — why?

A fault that keeps returning usually has a living cause: a VPN or security tool re-corrupting the catalogue, a failing adapter driver, or malware still present. Run a full antivirus scan, update or reinstall the network adapter driver, and note which program you installed or opened right before each return — that pattern names the culprit.

This guide is based on the Technical Anshu 60 Windows Commands video • Stuck on any step? Ask in the video comments — you will get a reply there 🙏