[root@asterisk1 ~]# netstat -lp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:32768 *:* LISTEN 2658/rpc.statd tcp 0 0 *:6600 *:* LISTEN 2992/ircd tcp 0 0 *:mysql *:* LISTEN 2946/mysqld tcp 0 0 *:5038 *:* LISTEN 3266/asterisk tcp 0 0 *:sunrpc *:* LISTEN 2639/portmap tcp 0 0 *:sieve *:* LISTEN 3266/asterisk tcp 0 0 *:http *:* LISTEN 3029/httpd tcp 0 0 *:4949 *:* LISTEN 3085/munin-node tcp 0 0 *:ftp *:* LISTEN 2855/vsftpd tcp 0 0 localhost:smtp *:* LISTEN 3010/sendmail: acce tcp 0 0 *:4445 *:* LISTEN 3406/perl tcp 0 0 *:ssh *:* LISTEN 2809/sshd udp 0 0 *:32768 *:* 2658/rpc.statd udp 0 0 *:32774 *:* 2992/ircd udp 0 0 *:3865 *:* 2821/xplhub udp 0 0 *:2727 *:* 3266/asterisk udp 0 0 *:4520 *:* 3266/asterisk udp 0 0 *:5060 *:* 3266/asterisk udp 0 0 *:tftp *:* 2834/xinetd udp 0 0 *:714 *:* 2658/rpc.statd udp 0 0 *:4569 *:* 3266/asterisk udp 0 0 *:sunrpc *:* 2639/portmap udp 0 0 192.168.0.99:ntp *:* 2846/ntpd udp 0 0 localhost:ntp *:* 2846/ntpd udp 0 0 *:ntp *:* 2846/ntpd udp 0 0 *:ntp *:* 2846/ntpd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 7680 3131/dbus-daemon-1 /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 8090 3266/asterisk /var/run/asterisk/asterisk.ctl unix 2 [ ACC ] STREAM LISTENING 6285 2769/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 6532 2946/mysqld /var/lib/mysql/mysql.sock