PDA

View Full Version : List of servers


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

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

deedee
7th June 2005, 11: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.