WiFi Connected But No Internet: A Complete Troubleshooting Guide
This guide explains how to diagnose and fix the common "connected to WiFi but no internet" issue on a computer. It covers a cross-validation method to narrow down the fault, a layered view of what a computer needs to get online, the most common root causes such as DNS failures, leftover proxy or VPN settings, IP address problems, and corrupted network stack components, plus a low-to-high cost repair order and additional checks for enterprise environments.
1. Narrow Down the Fault First: A Cross-Validation Approach
“Computer connects to WiFi but cannot access the internet, phone works fine on the same WiFi, and the computer works fine on the phone’s hotspot” is one of the most frequent network failures in home and office settings. It is confusing because the symptoms look contradictory: if it connects, the link is up; if it cannot get online, the link is down.
The first step is not to rush into changing settings, but to run a cross-validation. Separate the two dimensions of “device” and “network” and compare them:
| Combination | Result | What it tells you |
|---|---|---|
| Phone + this WiFi | Normal | The router’s internet access, dial-up, and access permissions are fine |
| Computer + phone hotspot | Normal | The computer’s network adapter, driver, and protocol stack are basically usable |
| Computer + this WiFi | Fails | The fault lies in “the computer’s configuration and state on this network” |
These two comparisons narrow the scope considerably: the router and the computer’s hardware can both be largely ruled out, and the problem is concentrated in the computer’s local network configuration when joining this specific network. Note that a hotspot usually has a simple network structure, direct address assignment, and no complex routing or filtering policies. So “the hotspot works” does not prove the computer’s configuration is entirely correct; it only shows the local protocol stack is not completely broken.
2. Layered Understanding: What a Computer Depends on to Get Online
To locate the fault, first understand the stages of a complete internet access process:
- Physical and link layer: the wireless adapter associates with the router and obtains a link-layer address;
- Network layer: obtain an IP address, subnet mask, and gateway via automatic or manual configuration;
- Name resolution: resolve domain names to IP addresses, relying on a DNS server;
- Transport and application layer: establish connections and transfer data;
- Local policy layer: proxies, VPNs, firewalls, security software, and other elements that take over traffic.
“Connected to WiFi” only completes part of steps 1 and 2, while most “connected but no internet” failures occur at step 3 and step 5. This also explains why clients like QQ that rely on long-lived connections, or that use their own resolution and connection strategies, may still work, while a browser keeps failing to open web pages—web browsing depends heavily on local DNS resolution results.
3. Common Root Causes and How to Identify Them
1. DNS resolution failure (most common)
In automatically obtained settings, the DNS is often pointed at the router itself. When resolution forwarding between the computer and the router breaks, domain names cannot be converted to IP addresses, and the symptom is “network connected” but no web page opens.
How to check (example):
# Test whether the gateway is reachableping 192.168.1.1# Test raw IP connectivity (no DNS involved)ping 223.5.5.5# Test domain resolutionnslookup www.example.com
If pinging the gateway works, pinging a public IP works, but domain resolution fails, you can basically pin it on DNS.
2. Leftover proxy or VPN settings
Once you have installed and run proxy-type software, it may leave system-level proxy settings, virtual adapters, or routing table entries. After an abnormal exit, these settings are not cleaned up automatically, so traffic is sent to a local port that no longer exists, and the symptom is an immediate timeout after the connection is established. This is also the typical cause of “rebooting fixes it, but it breaks again a few days later.”
How to check: verify whether the system proxy switch and address/port are empty or point to a local reserved address; look for a virtual adapter that shows a connected state but is not the one currently in use.
3. IP address acquisition failure or address conflict
When automatic acquisition fails, the operating system falls back to a reserved address range (the 169.254 range), and it cannot communicate with the gateway. Another case is a manually configured static address that does not match the current network range, or that conflicts with someone else’s address.
How to check:
ipconfig /all
Focus on whether the IPv4 address, default gateway, and DNS server are in the same range and follow the same plan as a normal device on the same network.
4. Corrupted protocol stack and address cache
Abnormal network protocol components, address resolution cache, or socket-layer state can cause “works sometimes, fails sometimes” behavior. These problems often appear after multiple sleep cycles, network switches, or an improper shutdown.
4. Fix Order from Lowest to Highest Cost
Try the steps strictly in increasing order of cost, and avoid resetting all settings right away.
Step 1: Minimal actions. Restart the router and the computer, turn the wireless switch off and on again, forget the network and re-enter the credentials to reconnect. About 30% of problems are solved at this step.
Step 2: Turn off proxy and VPN, and check whether proxy settings remain in the system proxy and in environment variables.
Step 3: Refresh the address and resolution cache. Open Command Prompt as administrator and run the following one by one:
ipconfig /releaseipconfig /renewipconfig /flushdns
Step 4: Manually specify a public DNS to bypass the router’s forwarding step. In the IPv4 settings of the wireless network properties, enter reliable public resolution addresses (for example, one preferred and one alternate), save, and verify again.
Step 5: Reset the network protocol components and the socket layer, then restart:
netsh winsock resetnetsh int ip reset
Step 6: In Device Manager, uninstall the wireless adapter driver and reinstall it, or roll back to the previous stable version; also check whether a power-saving policy turns off the adapter when idle.
Step 7: If none of the above works, then consider router-side factors such as address assignment, access control, band and channel compatibility—for example, the device was mistakenly added to a blocklist, the address pool is exhausted, or there is a compatibility issue with band steering that merges dual bands.
5. Additional Checks in Enterprise Environments
In office networks, a “single-machine failure” is often compounded by policy factors: failed network access authentication, expired certificates, isolation between the guest network and the internal network, a policy hit on an internet behavior management device, or a lease time that is too short and causes frequent renewal failures. When troubleshooting, first confirm whether other devices on the same subnet are also affected: if only one machine is abnormal, follow the single-machine process above; if a whole group is affected, turn to the access side and the egress side, and use log services and monitoring alerts to locate the issue.
For environments that need long-term stable operation, it is recommended to bring key network parameters under baseline management: fixed DNS, disabling unnecessary proxies, periodic audits of adapter driver versions, and adding network connectivity probes to routine monitoring so that signs such as resolution timeouts and rising packet loss can be detected before a failure occurs. If the enterprise uses cloud resources, it can also use unified log collection and monitoring alert capabilities to correlate endpoint network anomalies with egress link metrics, shortening the time to locate the problem.
6. Summary
The essence of this kind of failure is “the link is connected, but the local network configuration or state is incorrect.” Master the cross-validation method, understand the four key points of DNS, address, proxy, and protocol stack, and handle them in increasing order of cost, and most cases can be restored within a few minutes. What is truly worth investing in is not memorizing a single command, but forming the troubleshooting habit of “narrow the scope first, verify layer by layer, and reset only last.”
