root@ubuntu:~# netstat -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:4321 *:* LISTEN tcp 0 0 localhost:mysql *:* LISTEN tcp6 0 0 *:1234 *:* LISTEN udp 0 0 *:32768 *:* udp 0 0 *:5321 *:* udp 0 0 *:mdns *:*