If every phone and computer is offline, restart the router first. If only one Windows PC has the issue, use the commands below.
Internet Repair Steps and Commands
Use these questions and commands when WiFi connects but pages do not open, DNS fails, speed feels slow, or Windows shows no internet access.
Start With These Questions
Before running repair commands, answer these quick questions. They help you decide whether the issue is the device, router, DNS, WiFi signal or internet provider.
This often points to DNS, IP address, proxy or browser cache problems.
The problem may be WiFi range, router band, interference or a weak wireless adapter.
Turn off VPN temporarily and check proxy settings before resetting everything.
Safe First Steps Without Commands
- Restart the router and wait two minutes before testing again.
- Move closer to the router or switch from 2.4 GHz WiFi to 5 GHz WiFi.
- Disconnect VPN and pause large downloads, cloud backup and streaming.
- Test another browser and another device to compare the result.
- Run a speed test before and after repair so you know what changed.
Windows Internet Repair Commands
Open Command Prompt as Administrator for the repair commands. Some commands can temporarily disconnect the internet. Save work first and restart the computer after Winsock or IP reset commands.
How to Open Command Prompt for These Commands
- Press
Windows + Son your keyboard. - Type
cmdin the Windows search box. - Right-click Command Prompt.
- Click Run as administrator.
- Run the commands one by one. Do not paste every command at once.
- Restart the computer after
netsh winsock resetornetsh int ip reset.
Use Command Prompt for the ipconfig and netsh commands below. Use PowerShell only in the separate PowerShell section.
Question: Is the internet route reachable?
Use this to check whether your PC can reach a public IP address.
ping 8.8.8.8Question: Is DNS working?
If this fails but pinging 8.8.8.8 works, the connection may have a DNS problem.
ping google.com
nslookup google.comQuestion: What IP address did Windows receive?
Check your IP address, gateway and DNS details.
ipconfig /allQuestion: Can clearing DNS cache help?
This is a common first repair step when websites fail or old DNS records are stuck.
ipconfig /flushdnsQuestion: Should I request a fresh IP address?
Use these together when the PC has a bad or stale local IP address.
ipconfig /release
ipconfig /renewQuestion: Is Windows network stack damaged?
Run these if DNS flush and IP renew do not fix the issue. Restart the PC after running them.
netsh winsock reset
netsh int ip resetQuestion: Is a proxy blocking websites?
This clears WinHTTP proxy settings. Also check Windows Settings if you use a manual proxy.
netsh winhttp reset proxyQuestion: Which WiFi network am I connected to?
Check signal, radio type and connection details for the current WiFi connection.
netsh wlan show interfacesQuestion: What WiFi profiles are saved?
This lists saved WiFi names. Delete a profile only if you know the WiFi password.
netsh wlan show profilesQuestion: How do I check the route path?
Use this when some sites are slow but others work. It can show where delay begins.
tracert google.comPowerShell Commands for Network Checks
These commands are useful when you want to inspect or restart a network adapter. Replace Wi-Fi with your actual adapter name if Windows uses a different label.
Question: What network adapters are available?
Get-NetAdapterQuestion: Can I restart only the WiFi adapter?
This disconnects and reconnects the adapter. Run PowerShell as Administrator.
Restart-NetAdapter -Name "Wi-Fi"Question: Which DNS servers are being used?
Get-DnsClientServerAddressQuestion: How do I reset DNS back to automatic?
Use this if custom DNS settings caused problems.
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddressesRecommended Repair Order
- Restart router and computer.
- Run
ping 8.8.8.8andping google.com. - Run
ipconfig /flushdns. - Run
ipconfig /releaseandipconfig /renew. - Run
netsh winsock resetandnetsh int ip reset, then restart. - Run the speed test again and compare download, upload and ping.
Internet Repair Questions
Which command should I run first?
Start with ipconfig /flushdns. It is simple and often fixes website-loading problems caused by stale DNS records.
Do I need Administrator permission?
Yes for many repair commands, especially netsh winsock reset, netsh int ip reset and adapter restart commands.
Will these commands increase internet speed?
They can fix connection problems, DNS issues and broken network settings. They cannot make an internet plan faster than what the provider supplies.
When should I call my internet provider?
If all devices are slow or offline after router restart and basic checks, the issue may be with the line, modem, router or provider network.
Should I reset WiFi profiles?
Only if the saved WiFi profile is wrong or corrupted. Make sure you know the WiFi password before deleting any profile.