List of servers

Discussion in 'Server Operation' started by thomilla, Jun 5, 2005.

  1. thomilla

    thomilla New Member

    How can I see what servers are running on my system, and on which port?
     
  2. joe

    joe New Member HowtoForge Supporter

    You could either use nmap on yourself or use the netstat command.
     
  3. deedee

    deedee New Member

    I'd run
    Code:
    netstat -tap
    It will show a list with lines like this:

    Code:
    tcp        0      0 *:mysql                 *:*                     LISTEN      17735/mysqld
    where mysql is the port. If you want to know the number of the port, run

    Code:
    grep mysql /etc/services
    It'll show

    Code:
    mysql           3306/tcp                        # MySQL
    mysql           3306/udp                        # MySQL
    so you know the MySQL port is 3306.
     

Share This Page