How to Flush DNS and Reset the Windows Network Stack
Windows stores networking information that can occasionally become corrupted or outdated.
Resetting the Windows network stack can help resolve problems such as:
Websites not loading
DNS errors
Unable to connect
Ethernet or Wi-Fi showing no internet
Network configuration problems
Connection issues after changing network settings
Step 1: Open Command Prompt as Administrator
Search for Command Prompt, then select Run as administrator.
Step 2: Reset Winsock
Enter:
netsh winsock resetPress Enter.
Step 3: Reset TCP/IP
Enter:
netsh int ip resetPress Enter.
Step 4: Release Your Current IP Address
Enter:
ipconfig /releaseYour internet connection may temporarily disconnect. This is expected.
Step 5: Request a New IP Address
Enter:
ipconfig /renewStep 6: Flush the DNS Cache
Enter:
ipconfig /flushdnsStep 7: Restart Your PC
Restart Windows after completing the commands.
Then reconnect to your network and test the connection again.
When Should I Use This?
A network-stack reset is useful when the problem appears to be caused by Windows networking rather than your router, ISP, or physical connection.
It will not fix:
An ISP outage
A damaged Ethernet cable
Weak Wi-Fi signal
Failing network hardware
Router problems
If the issue continues, see our Resetting Your Network Adapters guide.