# netstat -tap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1910/xinetd
tcp 0 0 *:pop3s *:* LISTEN 1910/xinetd
tcp 0 0 *:mysql *:* LISTEN 5895/mysqld
tcp 0 0 *:pop3 *:* LISTEN 1910/xinetd
tcp 0 0 *:imap *:* LISTEN 1910/xinetd
tcp 0 0 *:81 *:* LISTEN 1745/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 1883/proftpd: (acce
tcp 0 0 mydomain.dedic:domain *:* LISTEN 1865/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 1865/named
tcp 0 0 *:ipp *:* LISTEN 1866/cupsd
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 1865/named
tcp 0 0 *:smtp *:* LISTEN 1838/master
tcp 0 0 *:http *:* LISTEN 1766/httpd
tcp 0 0 *:ssh *:* LISTEN 1902/sshd
tcp 0 2004 mydomain.dedicate:ssh wsip-myip.ok.:1555 ESTABLISHED 3917/0
mydomain and myip are replaced