Networking & Wi-Fi Troubleshooting Master Guide: Ping, DNS, Ports & Diagnostics
The cross-platform diagnostic guide for identifying packet loss, flushing corrupted DNS caches, testing open listening ports, and analyzing Wi-Fi signal interference across Windows, macOS, and Linux.
1. Flush DNS Cache Across All Operating Systems
ipconfig /flushdnsClears the Windows DNS Client Resolver Cache immediately.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderFlushes DirectoryService cache and restarts Apple multicast DNS daemon.
sudo resolvectl flush-cachesPurges upstream query caches in modern systemd-based Linux distributions.
2. Diagnosing Latency, Jitter & Packet Loss
ping 1.1.1.1 -tRuns continuous latency test (press Ctrl+C to view min/max/average packet statistics).
# Linux / macOS:
mtr --report --report-cycles 10 1.1.1.1Combines ping and traceroute to identify the exact intermediate router dropping packets.
pathping google.comComputes degree of packet loss at each router over a 5-minute sampling period.
3. Testing Open Ports & Local Listening Sockets
# Linux / macOS:
nc -zv api.github.com 443
# Windows PowerShell:
Test-NetConnection -ComputerName "api.github.com" -Port 443Attempts a full TCP handshake without transmitting data to confirm firewall access.
netstat -ano | findstr :8080Displays the listening socket address and the owning Process ID (PID).
lsof -iTCP:8080 -sTCP:LISTENReveals the command name, PID, and user owning the port.
4. Wi-Fi Signal Strength & Channel Congestion
netsh wlan show interfacesOutputs active SSID, Radio type (802.11ax Wi-Fi 6), Channel, Signal percentage, and Transmit/Receive rates.
netsh wlan show networks mode=bssidLists all neighboring access points and their operating channels to find uncongested frequencies.
Related Free Online Tools
Put these techniques into practice immediately with our privacy-first browser utilities:
Calculate IP ranges, broadcast addresses, and usable subnet host counts.
Encode query parameters and decode complex network URLs.
Inspect browser engine, operating system, and client device headers.