Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
Can you elaborate a bit on tcpdump -p tcp? Cheers. – tjt263 Sep 25 '15 at 1:33
Oh, & watch too.. – tjt263 Sep 25 '15 at 1:34
tcpdump -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 Sep 28 '15 at 2:00

Your Answer


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.