Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

Sounds like you either want "tcpdump -p tcp" or "watch 'netstat -p tcp'" depending on which output you're interested in.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.