Read TCP Protocol Statistics with netstat -s -p tcp
Dump kernel TCP counters on macOS to diagnose retransmissions and dropped connections.
01Command
$ netstat -s -p tcp
# Just the interesting lines:
netstat -s -p tcp | grep -Ei "retransmit|out-of-order|listen queue"02What it does
`netstat -s` prints the kernel's accumulated protocol statistics, and `-p tcp` narrows it to the TCP block: packets sent/received, retransmit timeouts, out-of-order deliveries, and — importantly — listen queue overflows that mean an app is too slow to accept connections. Unlike a speed test, these counters show *why* a link feels slow without generating any traffic. Take two snapshots a minute apart and diff them to measure ongoing loss.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- netstat — macOS Command ReferenceEvidence: Documents the -s (statistics) and -p <protocol> flags.
Last verified: 2026-09-17 · Category: Network
06Related solutions
Erase the broken Spotlight database so macOS re-indexes your drive from scratch.
Read the serial number, model identifier and chip without opening About This Mac.
See how many charge cycles the battery has used and its health condition.