Is your Internet connection unstable? A website won’t load, or your PC can’t reach the router even though Wi-Fi is enabled? Before restarting everything and hoping for the best, Windows offers a powerful set of built-in network commands that can diagnose and fix most connection problems in minutes.
These commands allow you to:
- verify if your connection is actually working,
- fix DNS resolution issues,
- renew your IP address,
- identify exactly where the network is failing,
- or completely reset Windows’ network stack.
Below are the 8 essential Windows networking commands, what they do, when to use them, and how to understand their results.
Open Command Prompt as Administrator
Some commands require elevated privileges.
- Type
cmdin the Start menu - Right-click Command Prompt → Run as administrator
- Confirm the security prompt
You can also use Windows Terminal (Admin) from the Start menu.
1. ping — Check if the connection actually works
ping google.com
If you get replies, the connection works.
If you get timeouts or host errors, there is a network or DNS issue.
Test your router:
ping 192.168.1.1
If the router responds but websites do not → ISP or DNS problem.
If the router doesn’t respond → local network issue.
2. ipconfig /flushdns — Clear the DNS cache
ipconfig /flushdns
Clears cached domain records that may be outdated or corrupted.
Use this when a site won’t load but Internet works otherwise.
3. ipconfig /release and ipconfig /renew — Renew your IP address
ipconfig /release
ipconfig /renew
Requests a fresh network configuration from the router.
Fixes conflicts, invalid IP assignments, and “connected but no Internet” problems.
4. nslookup — Test DNS resolution
nslookup google.com
If no IP is returned, DNS is failing.
Test with a public DNS:
nslookup google.com 8.8.8.8
If this works, your ISP DNS server is the problem.
5. tracert — Find where the connection stops
tracert google.com
Shows every hop between your PC and the destination server.
If it stops at your router → local issue.
If it stops further away → ISP or backbone network issue.
6. netstat — See what is using your network
netstat -b
Displays active connections and which programs are using them.
Useful to identify bandwidth hogs or suspicious network activity.
7. netsh winsock reset — Repair Windows’ network stack
netsh winsock reset
Resets Windows networking components that may be corrupted.
Use this after VPN issues, malware, or broken updates.
Restart required.
8. netsh int ip reset — Fully reset TCP/IP configuration
netsh int ip reset
Completely resets IP settings to default.
Use as a last resort before suspecting hardware failure.
Restart required.
What if nothing works?
If none of the commands solve the issue, the problem is likely:
- a faulty Ethernet cable or Wi-Fi adapter,
- outdated or broken network drivers,
- router malfunction,
- or ISP outage.
Try:
- another cable or device,
- updating network drivers,
- rebooting the router,
- testing on a phone or another PC.
If everything fails on all devices → contact your ISP.
If only your PC fails → driver or hardware issue.
Conclusion
These eight Windows commands can fix most Internet and network issues in minutes without reinstalling Windows or calling support. Bookmark them — they are invaluable for diagnosing and repairing connectivity problems quickly and accurately.
And if you'd like to go a step further in supporting us, you can treat us to a virtual coffee ☕️. Thank you for your support ❤️!
We do not support or promote any form of piracy, copyright infringement, or illegal use of software, video content, or digital resources.
Any mention of third-party sites, tools, or platforms is purely for informational purposes. It is the responsibility of each reader to comply with the laws in their country, as well as the terms of use of the services mentioned.
We strongly encourage the use of legal, open-source, or official solutions in a responsible manner.


Comments