nettop
Display updated information about the network. tldr-pages
On macOS
macOS
Monitor TCP and UDP sockets from all interfaces
nettopIdentifyMonitor TCP sockets from Loopback interfaces
nettop -m tcp -t loopbackIdentifyMonitor a specific process
nettop -p "process_id"IdentifyDisplay a per-process summary
nettop -PIdentifyPrint 10 samples of network information
nettop -l 10IdentifyMonitor changes every 5 seconds
nettop -d -s 5IdentifyWhile running nettop, list interactive commands
<h>Display help
nettop -hIdentify