1

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?

evfwcqcg
  • 349

1 Answers1

3

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.

allquixotic
  • 34,566