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

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.

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.