Server Fault is a question and answer site for system and network administrators. 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

This would be for under Linux particularly.

Is there a tool out there, or a script that I could use to monitor IP connections--with name resolution--and, see which process they're connected to?

Right now I'm using this:

watch -d netstat -peeW --numeric-hosts --inet

But that doesn't give me host resolution. I was thinking of writing up a script with sed or something, but that seemed like more work than it needed to be.

share|improve this question
up vote 2 down vote accepted

Getting rid of --numeric-hosts will tell netstat to do address lookups.

share|improve this answer

I would use the following

sudo lsof -i -n -a

(You could also use fuser)

share|improve this answer

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.