View Full Version : List of servers

5th June 2005, 18:51
How can I see what servers are running on my system, and on which port?

5th June 2005, 20:27
You could either use nmap on yourself or use the netstat command.

7th June 2005, 12:40
I'd run
netstat -tap

It will show a list with lines like this:

tcp 0 0 *:mysql *:* LISTEN 17735/mysqld

where mysql is the port. If you want to know the number of the port, run

grep mysql /etc/services

It'll show

mysql 3306/tcp # MySQL
mysql 3306/udp # MySQL

so you know the MySQL port is 3306.