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