Quick Summary / Direct Answer: A website loading on mobile data but failing on Wi-Fi typically indicates local network DNS resolution failure, misconfigured IPv6 dual-stack routing, Maximum Transmission Unit (MTU) size mismatches, or Web Application Firewall (WAF) public IP blocks. While cellular networks query fresh carrier DNS resolvers and route around local blocklists, your local Wi-Fi network frequently hangs due to stale DNS cache, broken IPv6 neighbor discovery, or dropped packets.
Key Takeaways:
- DNS and Resolver Mismatches: Local Wi-Fi DNS resolvers can retain stale IP records or block domain access while mobile carrier resolvers update immediately.
- Network Layer Bottlenecks: Faulty IPv6 routing (Happy Eyeballs RFC 8305 failure) and MTU fragmentation issues drop TCP packets silently on local Wi-Fi connections.
- Security and Firewall Blocks: Origin Web Application Firewalls (WAFs) like Cloudflare or AWS CloudFront frequently block local public IP ranges due to rate limits while allowing cellular CGNAT pools.
Diagnosing Network Path Disconnects
It happens instantly. You attempt to open a URL on your laptop or phone connected to home Wi-Fi. The browser hangs, displaying an ERR_CONNECTION_TIMED_OUT or DNS_PROBE_FINISHED_NXDOMAIN error. You toggle Wi-Fi off, switch to LTE or 5G mobile data, and hit refresh. The page loads immediately.
This failure pattern proves the destination web server is online. The breakdown exists entirely within your local Wi-Fi network path, local resolver cache, or the security rules governing your local public IP address. Resolving this issue requires isolating the failure across the OSI model layers: Application (DNS/HTTP), Transport (TCP/UDP), and Network (IP/MTU).
Core Technical Causes: Why Wi-Fi Fails While Cellular Succeeds
1. Domain Name System (DNS) Cache Poisoning and Stale Resolvers
Mobile carriers operate massive, highly dynamic DNS resolvers that rapidly refresh TTL (Time-To-Live) records. Home routers and local Internet Service Providers (ISPs) often cache DNS responses far longer than specified by the authoritative name server.
If a website recently migrated to a new IP address or server infrastructure, your local Wi-Fi DNS resolver might still attempt to direct your browser to an abandoned IP address. The connection times out. Conversely, your cellular network fetches the updated A/AAAA records instantly.
2. IPv6 Routing Failures and Broken Dual-Stack Implementation
Modern modern web routing relies on dual-stack IPv4 and IPv6 deployments. RFC 8305 defines an algorithm known as "Happy Eyeballs," designed to attempt IPv4 and IPv6 connections concurrently to eliminate user-perceived delay.
When a home Wi-Fi router advertises IPv6 capabilities via Router Advertisements (RA) but lacks a valid, working IPv6 WAN route to the destination host, the browser attempts to initiate a TCP handshake over IPv6. If the local network drops these SYN packets without triggering a quick fallback to IPv4, the browser waits until the connection deadline expires. Cellular networks manage IPv6 transition technologies (like NAT64/DNS64) with strict carrier-grade testing, bypassing this local misconfiguration entirely.
3. Web Application Firewall (WAF) Public IP Blocks
Web servers employ security layers such as Cloudflare, ModSecurity, or AWS WAF to mitigate automated attacks. If another device on your home Wi-Fi network previously generated suspicious traffic, ran a compromised script, or exceeded API rate limits, the WAF may place your router's external public IPv4 address on a blocklist.
When you browse via Wi-Fi, your egress traffic shares a single public IP. The WAF drops your SYN packets or returns a 403 Forbidden page. Switching to mobile data routes your request through a completely different Carrier-Grade NAT (CGNAT) IP block, bypassing the firewall filter cleanly.
4. Maximum Transmission Unit (MTU) Misconfiguration
The Maximum Transmission Unit (MTU) dictates the largest packet size allowed across a network interface without fragmentation. Standard Ethernet networks use an MTU of 1500 bytes. PPPoE connections, VPN tunnels, and specific Wi-Fi protocols introduce packet overhead, reducing the usable payload size.
If your router or local OS interface forces an MTU size larger than the network path permits—and Path MTU Discovery (PMTUD) ICMP messages are blocked by intermediate firewalls—large TCP packets get dropped silently. Small payloads like initial TCP SYN handshakes succeed, but larger HTTP responses or TLS Client Hello certificates fail to arrive. Mobile data stacks dynamically adjust packet sizing, avoiding this fragmentation trap.
Step-by-Step Diagnostic Matrix
Use the following matrix to identify the exact cause based on command line responses and system behaviors:
| Error Code / Symptom | Likely Root Cause | Diagnostic Command | Primary Remediation |
|---|---|---|---|
DNS_PROBE_FINISHED_NXDOMAIN |
Local DNS Resolver Cache | nslookup example.com |
Flush local DNS / Change to 1.1.1.1 |
ERR_CONNECTION_TIMED_OUT |
IPv6 Route Drop or WAF IP Block | traceroute -6 example.com |
Disable IPv6 or unblock public IP |
| TLS Handshake Hangs indefinitely | MTU / PMTUD Fragmentation Failure | ping -s 1472 -D example.com |
Lower network interface MTU to 1420 |
| 403 Forbidden / Access Denied | Origin WAF Block on Public IP | curl -I https://example.com |
Restart modem to cycle public IP |
Terminal Diagnostic Commands for Network Engineers
Execute these terminal commands while connected to the problematic Wi-Fi network to isolate the failure layer.
First, verify DNS lookup responses against public recursive resolvers:
# Test local system resolution against Cloudflare public DNS
dig example.com @1.1.1.1 +short
# Test local system resolution against Google public DNS
dig example.com @8.8.8.8 +short
# Compare output against default system resolver
dig example.com +short
If public resolvers return valid IP addresses while your default lookup hangs or returns incorrect IPs, your local router DNS service is failing.
Next, isolate IPv4 versus IPv6 connection paths using curl:
# Force connection via IPv4 only
curl -4 -Iv https://example.com
# Force connection via IPv6 only
curl -6 -Iv https://example.com
If IPv4 returns standard 200 OK headers while IPv6 times out during the TLS handshake, your network path suffers from a broken IPv6 deployment.
Finally, inspect Path MTU settings to check for dropped fragmented packets:
# Windows CLI packet size test (1472 + 28 byte header = 1500 bytes total)
ping -f -l 1472 example.com
# Linux / macOS terminal packet size test
ping -D -s 1472 example.com
If the ping command responds with "Packet needs to be fragmented but DF set," lower your payload size incrementally (e.g., 1440, 1400) until packets pass successfully.
Systematic Fix Workflows
Method 1: Flush Local Resolver Caches
To clear corrupt DNS tables from operating system memory, run the relevant command for your OS platform:
- Windows: Open PowerShell as Administrator and run
ipconfig /flushdns. - macOS: Open Terminal and execute
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. - Linux (systemd-resolved): Execute
sudo resolvectl flush-caches.
Method 2: Change Wi-Fi DNS Servers
Bypass unresponsible local ISP resolvers by configuring static public DNS engines directly on your wireless network interface:
- Open your device's Wi-Fi network properties page.
- Locate IPv4 Settings and switch from Automatic (DHCP) to Manual DNS configuration.
- Set Primary IPv4 DNS to
1.1.1.1(Cloudflare) and Secondary DNS to8.8.8.8(Google). - Set Primary IPv6 DNS to
2606:4700:4700::1111and Secondary IPv6 DNS to2001:4860:4860::8888if applicable. - Save settings and reconnect to the Wi-Fi network.
Method 3: Disable IPv6 on the Network Adapter
If IPv6 tracing demonstrates packet dropping, temporarily disable IPv6 at the client interface level to force clean IPv4 routing:
- Windows: Open
ncpa.cplvia Run prompt. Right-click your Wi-Fi adapter, select Properties, uncheck Internet Protocol Version 6 (TCP/IPv6), and click OK. - macOS: Navigate to System Settings > Network > Wi-Fi > Details > TCP/IP. Set Configure IPv6 to Link-Local Only or Off.
Method 4: Clear Router Public IP Blocks
If an origin server WAF blocked your home network public IP address, cycle your network equipment:
- Unplug power from your broadband modem and wireless router.
- Wait a full 5 minutes. Broadband access servers typically assign a new dynamic IPv4 address upon lease expiration.
- Reconnect the modem power, wait for full synchronization, then power on the Wi-Fi router.
- Verify your new public IP address via an online IP checker, then retry loading the target website.
