Unter Linux gibt es ein Befehl mit dem man sich alle geöffneten Ports des Servers/Clients ansehen kann. Der Befehl nennt sich:
$: lsof -i
Als Ausgabe in der Console wird dann der aktuelle Stand offener Ports ausgegeben.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
avahi-dae 2639 avahi 13u IPv4 6339 0t0 UDP *:mdns
avahi-dae 2639 avahi 14u IPv4 6340 0t0 UDP *:46701
sshd 2666 root 3u IPv6 6365 0t0 TCP *:ssh (LISTEN)
sshd 2666 root 4u IPv4 6367 0t0 TCP *:ssh (LISTEN)
portmap 2752 bin 4u IPv4 6525 0t0 UDP *:sunrpc
portmap 2752 bin 5u IPv4 6536 0t0 TCP *:sunrpc (LISTEN)
xinetd 2760 root 5u IPv4 6598 0t0 TCP *:ftp (LISTEN)
couriertc 2771 root 5u IPv4 6613 0t0 TCP *:imap (LISTEN)
couriertc 2800 root 5u IPv4 6653 0t0 TCP *:imaps (LISTEN)
couriertc 2809 root 5u IPv4 6672 0t0 TCP *:pop3 (LISTEN)
couriertc 2819 root 5u IPv4 6695 0t0 TCP *:pop3s (LISTEN)
ntpd 2838 ntp 16u IPv4 6778 0t0 UDP *:ntp
ntpd 2838 ntp 17u IPv6 6779 0t0 UDP *:ntp
ntpd 2838 ntp 18u IPv6 6783 0t0 UDP ip6-localhost:ntp
avahi-dae 2639 avahi 13u IPv4 6339 0t0 UDP *:mdns
avahi-dae 2639 avahi 14u IPv4 6340 0t0 UDP *:46701
sshd 2666 root 3u IPv6 6365 0t0 TCP *:ssh (LISTEN)
sshd 2666 root 4u IPv4 6367 0t0 TCP *:ssh (LISTEN)
portmap 2752 bin 4u IPv4 6525 0t0 UDP *:sunrpc
portmap 2752 bin 5u IPv4 6536 0t0 TCP *:sunrpc (LISTEN)
xinetd 2760 root 5u IPv4 6598 0t0 TCP *:ftp (LISTEN)
couriertc 2771 root 5u IPv4 6613 0t0 TCP *:imap (LISTEN)
couriertc 2800 root 5u IPv4 6653 0t0 TCP *:imaps (LISTEN)
couriertc 2809 root 5u IPv4 6672 0t0 TCP *:pop3 (LISTEN)
couriertc 2819 root 5u IPv4 6695 0t0 TCP *:pop3s (LISTEN)
ntpd 2838 ntp 16u IPv4 6778 0t0 UDP *:ntp
ntpd 2838 ntp 17u IPv6 6779 0t0 UDP *:ntp
ntpd 2838 ntp 18u IPv6 6783 0t0 UDP ip6-localhost:ntp