Skip to main content
HTREASURE LTD

Troubleshooting

Windows Network Troubleshooting: 7 Commands to Fix Internet Problems

Diagnose and fix internet and network problems in Windows with ipconfig, ping, tracert, nslookup, Test-NetConnection and a network reset.

Published

7 commands to fix internet problems – HTREASURE LTD guide

When the internet stops working, a few built-in Windows commands can tell you whether the problem is your PC, your router, your broadband provider or a single website. Open Command Prompt or PowerShell to try them.

1. ipconfig: check your connection details

ipconfig /all

Look for your adapter's IPv4 address and Default Gateway (usually your router). An address starting 169.254 means your PC did not get an address from the router: restart the router and check cables or Wi-Fi.

2. ping: test whether you can reach a device

ping 192.168.1.1 (use your default gateway's address)

If your router replies, your local network works. Then try ping 1.1.1.1 or another public address to test the internet connection. Note that some devices are set not to reply to ping.

3. nslookup: test name lookups (DNS)

nslookup htreasure.com

If pinging an IP address works but website names do not, the problem is probably DNS. Try restarting the router or changing DNS servers.

4. ipconfig /flushdns: clear the DNS cache

ipconfig /flushdns

This clears saved name lookups, which helps when a website has moved or a lookup is stuck.

5. tracert: see where the connection breaks

tracert htreasure.com

Tracert lists each step (hop) between you and the destination. If it stops at your router, the problem is local. If it stops further out, the issue is likely with your provider or the website.

6. Test-NetConnection: check a specific port

In PowerShell:

Test-NetConnection htreasure.com -Port 443

TcpTestSucceeded : True means the service is reachable. This is useful when one application fails but web browsing works.

7. Reset the network stack

If settings are corrupted, run these in an administrator prompt and restart:

netsh winsock reset

ipconfig /release then ipconfig /renew

As a last resort, go to Settings > Network & internet > Advanced network settings > Network reset. This removes and reinstalls network adapters, so you will need to reconnect to Wi-Fi and VPNs afterwards.

Quick checklist

  • Restart the PC and the router.
  • Check whether other devices have the same problem.
  • Check your broadband provider's service status page.
  • Temporarily disconnect VPNs and proxies.

Frequently asked questions

Why does Wi-Fi say "No internet, secured"?

Your PC is connected to the router, but the router cannot reach the internet, or DNS is failing. Run steps 2 and 3.

Need help?

Our [technical support](https://htreasure.com/services/technical-support) team can help diagnose network problems in homes and small offices.