3
2
Using Mac OS X's Terminal application, I want to use netstat
to display a real-time, continuous listing of my internet connections.
For example, with Terminal open and the proper netstat
command in use, each time I browse to a website, display the source and destination IP addresses and ports.
netstat -w 3
displays real-time packet and byte info. I figured netstat -w 3 -p tcp
would show actual source and destination addresses, but it does not.
Any suggestions? Thank you!
1Can you elaborate a bit on
tcpdump -p tcp
? Cheers. – voices – 2015-09-25T01:33:13.170Oh, &
watch
too.. – voices – 2015-09-25T01:34:50.677tcpdump -p tcp simply shows you all the tcp packets going through your default network interface, and watch runs a command repeatedly showing you the output as it changes. – mikebabcock – 2015-09-28T02:00:12.593