Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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 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.

up vote 12 down vote accepted

as root

sudo lsof -i
sudo netstat -lptu
share|improve this answer
I generally do: "sudo netstat -anp | grep port_number" – Leonardo Constantino Mar 16 '11 at 19:20
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 .