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.

Possible Duplicate:
Finding the process that is using a certain port in Linux

How can I find out which process is listening on a port on linux?

share|improve this question

migrated from stackoverflow.com Mar 16 '11 at 11:12

This question came from our site for professional and enthusiast programmers.

marked as duplicate by studiohack Aug 30 '12 at 20:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5 Answers 5

up vote 10 down vote accepted

as root

sudo lsof -i
sudo netstat -lptu
share|improve this answer
1  
I generally do: "sudo netstat -anp | grep port_number" –  Leonardo Constantino Mar 16 '11 at 19:20
2  
i like netstat -tnlp –  vahid chakoshy Oct 26 '12 at 11:59

With lsof -iTCP -sTCP:LISTEN you get a list of all TCP ports in state LISTEN and their associated processes (command and pid are in the first two columns).

share|improve this answer

you can use "netstat"

netstat -anp | less

will show you the PID and process name as the last column, checkout "man netstat" if you want to change the options

share|improve this answer

You can use netstat to list all processes listening on some port. But I don't how to filter for a specific one.

share|improve this answer

netstat should help if you are on Linux. For more information see man netstat.

share|improve this answer

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