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

Suppose I run some daemon but I didn't remember which port it usually use. How can I obtain this information?

share|improve this question

marked as duplicate by slhck Oct 24 '12 at 14:58

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.

1 Answer 1

up vote 3 down vote accepted

Use the netstat tool. For example:

netstat -pan

Look under the section that says "LISTEN" and it will tell you what ports the daemons are listening on. Note that you should run this as root unless the daemon is running as the user you're logged in as.

share|improve this answer

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