←Back to Guides
๐ŸŒNetwork Diagnosticsโฑ๏ธ 12 min read•Updated October 2026

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.

#Networking#DNS#Wi-Fi#Ping#Traceroute#Ports#Sysadmin#Linux#Windows

1. Flush DNS Cache Across All Operating Systems

Stale or poisoned DNS records cause website unreachable errors (like `ERR_NAME_NOT_RESOLVED`) after domain migrations or IP changes. **Commands to Flush DNS by OS:**
Windows 11 & 10 DNS Flush
ipconfig /flushdns

Clears the Windows DNS Client Resolver Cache immediately.

macOS Sonoma & Sequoia DNS Flush
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Flushes DirectoryService cache and restarts Apple multicast DNS daemon.

Linux (systemd-resolved) DNS Flush
sudo resolvectl flush-caches

Purges upstream query caches in modern systemd-based Linux distributions.

2. Diagnosing Latency, Jitter & Packet Loss

Standard `ping` only tests basic ICMP echo replies. For real-world connection drops, you need continuous testing and hop-by-hop route diagnostics:
Continuous Ping with Timestamp on Windows
ping 1.1.1.1 -t

Runs continuous latency test (press Ctrl+C to view min/max/average packet statistics).

MTR (My Traceroute) Live Packet Loss Analysis
# Linux / macOS:
mtr --report --report-cycles 10 1.1.1.1

Combines ping and traceroute to identify the exact intermediate router dropping packets.

Windows Pathping (Hop Latency Analysis)
pathping google.com

Computes degree of packet loss at each router over a 5-minute sampling period.

3. Testing Open Ports & Local Listening Sockets

Verify firewall rules and find which local applications occupy specific ports:
Test Remote TCP Port (Netcat Alternative)
# Linux / macOS:
nc -zv api.github.com 443

# Windows PowerShell:
Test-NetConnection -ComputerName "api.github.com" -Port 443

Attempts a full TCP handshake without transmitting data to confirm firewall access.

Find Which Process Listens on Port 8080 (Windows)
netstat -ano | findstr :8080

Displays the listening socket address and the owning Process ID (PID).

Find Which Process Listens on Port 8080 (Linux / macOS)
lsof -iTCP:8080 -sTCP:LISTEN

Reveals the command name, PID, and user owning the port.

4. Wi-Fi Signal Strength & Channel Congestion

Inspect Wi-Fi receive signal strength (RSSI), link speed, and channel interference without installing bloated third-party tools:
View Detailed Wi-Fi Link Speed & Signal (Windows)
netsh wlan show interfaces

Outputs active SSID, Radio type (802.11ax Wi-Fi 6), Channel, Signal percentage, and Transmit/Receive rates.

Scan Nearby Wi-Fi BSSIDs & Channels (Windows)
netsh wlan show networks mode=bssid

Lists all neighboring access points and their operating channels to find uncongested frequencies.

๐ŸŽ“Explore More Guides

โœจ