Solution:
Root Cause: Mobile OS IP Forwarding / iptables Kernel NAT Table Failure
When a smartphone functions as a hotspot, its Linux or Darwin kernel must forward IPv4 packets between the local Wi-Fi interface (
wlan0/
ap0) and the cellular data interface (
rmnet_data0/
pdp_ip0). This requires kernel IP forwarding (
sysctl net.ipv4.ip_forward=1) and active Network Address Translation (NAT) via
iptables/
nftables. If the cellular interface resets (e.g., tower handoff) without updating kernel NAT rules, local client packets are dropped at the mobile gateway.
# Diagnostic Verification:
Test local gateway vs public WAN IP reachability from laptop Command Prompt: cmd
ping 192.168.43.1
ping 8.8.8.8
If pinging 192.168.43.1 returns replies (<5ms) but 8.8.8.8 times out, packet forwarding across the cellular interface has stalled.# Step-by-Step Fix:
1. Reset Cellular Data Stack on Phone:
Turn off Mobile Hotspot.Toggle Cellular Data OFF, wait 5 seconds, and toggle Cellular Data ON.Turn Mobile Hotspot back ON.2. Force Mobile Network Re-registration:
Change network mode on phone from 5G/LTE Auto to 3G/LTE and back to 5G/LTE Auto to force a fresh attach request to the Mobile Switch Center (MSC).3. USB Tethering Alternative Verification:
Connect laptop to phone via USB cable and enable USB Tethering on the phone.If USB tethering works, the issue is isolated to the phone's Wi-Fi bridge NAT rules; reboot the mobile device to rebuild kernel routing tables.# Prevention & Long-Term Monitoring:
Ensure the mobile device's operating system is kept up to date to prevent kernel-level netfilter race conditions.