Mac Network Traffic Monitoring

I am wondering how to track network traffic on my Mac. Just like an activity monitor does, showing bytes / packets of inputs and outputs.

I know this is a bit vague, but I'm not sure the best place to start.

EDITOR: I want to do this in code, and not use the existing piece of software.

+5
source share
4 answers

I just found an open source project, MenuMeters . He got exactly what I'm looking for.

+6
source

, pcap. , tcpdump.

+3

tcpdump wireshark .

OTOH, / ( ), Net Monitor, , .

0

. , , :

nettop //displays network usage per application with lot of details
nettop (press h) //displays help menu
nettop (press c) //collapse and display brief info on network usage
0

All Articles