I haven't really used netstat before, so I'm not sure if I'm using it correctly. Here's my output:
Code:
me$ sudo netstat -pv --protocol=inet
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdoma:ipp localhost.localdom:3622 ESTABLISHED7660/cupsd
tcp 0 0 localhost.localdoma:ipp localhost.localdom:3120 ESTABLISHED7660/cupsd
tcp 0 0 localhost.localdom:3409 localhost.localdom:1110 TIME_WAIT -
tcp 0 0 localhost.localdom:4934 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4932 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4933 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4930 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4931 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4928 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4929 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4943 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4941 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4950 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4951 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4956 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4957 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4954 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4955 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4952 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4953 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4926 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4927 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:4925 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:1830 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:1831 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:1828 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 localhost.localdom:1829 localhost.localdoma:ipp TIME_WAIT -
tcp 0 0 [my internet ip]:2426 64.233.187.104:www ESTABLISHED13121/firefox-bin
tcp 0 0 [my internet ip]:2424 64.233.187.104:www ESTABLISHED13121/firefox-bin
tcp 0 0 localhost.localdom:3622 localhost.localdoma:ipp ESTABLISHED10306/gnome-cups-ic
tcp 0 0 localhost.localdom:3120 localhost.localdoma:ipp ESTABLISHED9338/gnome-cups-ico
tcp 1 0 [my internet ip]:4636 [my mail server's IP]:imaps CLOSE_WAIT 13121/firefox-bin
tcp 1 0 [my internet ip]:4615 [my mail server's IP]:imaps CLOSE_WAIT 13121/firefox-bin
tcp 1 0 [my internet ip]:4616 [my mail server's IP]:imaps CLOSE_WAIT 13121/firefox-bin
tcp 1 0 [my internet ip]:4617 [my mail server's IP]:imaps CLOSE_WAIT 13121/firefox-bin
tcp 0 1 [my internet ip]:3629 stats.zone.com:9999 SYN_SENT 13270/ngWorldStats
Code:
me$ sudo netstat -pvl --protocol=inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:afpovertcp *:* LISTEN 9213/afpd
tcp 0 0 *:netbios-ssn *:* LISTEN 7725/smbd
tcp 0 0 192.168.2.1:427 *:* LISTEN 7728/slpd
tcp 0 0 [my internet ip]:427 *:* LISTEN 7728/slpd
tcp 0 0 192.168.1.1:427 *:* LISTEN 7728/slpd
tcp 0 0 localhost.localdoma:427 *:* LISTEN 7728/slpd
tcp 0 0 *:sunrpc *:* LISTEN 6087/portmap
tcp 0 0 *:10000 *:* LISTEN 7758/perl
tcp 0 0 localhost.localdoma:721 *:* LISTEN 7753/famd
tcp 0 0 *:auth *:* LISTEN 7682/inetd
tcp 0 0 localhost.localdom:1110 *:* LISTEN 13121/firefox-bin
tcp 0 0 *:ipp *:* LISTEN 7660/cupsd
tcp 0 0 *:731 *:* LISTEN 7757/rpc.statd
tcp 0 0 *:microsoft-ds *:* LISTEN 7725/smbd
udp 0 0 *:1025 *:* 8965/mdnsd
udp 0 0 *:1026 *:* 9887/ut-bin
udp 0 0 192.168.1.1:netbios-ns *:* 7718/nmbd
udp 0 0 [my internet ip]:netbios-ns *:* 7718/nmbd
udp 0 0 192.168.2.1:netbios-ns *:* 7718/nmbd
udp 0 0 *:netbios-ns *:* 7718/nmbd
udp 0 0 192.168.1.1:netbios-dgm *:* 7718/nmbd
udp 0 0 [my internet ip]:netbios-dgm *:* 7718/nmbd
udp 0 0 192.168.2.1:netbios-dgm *:* 7718/nmbd
udp 0 0 *:netbios-dgm *:* 7718/nmbd
udp 0 0 *:10000 *:* 7758/perl
udp 0 0 255.255.255.255:427 *:* 7728/slpd
udp 0 0 192.168.2.1:427 *:* 7728/slpd
udp 0 0 239.255.255.253:427 *:* 7728/slpd
udp 0 0 [my internet ip]:427 *:* 7728/slpd
udp 0 0 239.255.255.253:427 *:* 7728/slpd
udp 0 0 192.168.1.1:427 *:* 7728/slpd
udp 0 0 239.255.255.253:427 *:* 7728/slpd
udp 0 0 *:1077 *:* 10057/ut-bin
udp 0 0 *:1078 *:* 10057/ut-bin
udp 0 0 *:zephyr-hm *:* 7748/zhm
udp 0 0 *:8777 *:* 13471/ut-bin
udp 0 0 *:8778 *:* 9887/ut-bin
udp 0 0 *:725 *:* 7757/rpc.statd
udp 0 0 *:728 *:* 7757/rpc.statd
udp 0 0 *:afs3-callback *:* -
udp 304 0 *:7777 *:* 9887/ut-bin
udp 6992 0 *:7777 *:* 13471/ut-bin
udp 0 0 *:7778 *:* 13471/ut-bin
udp 0 0 *:7779 *:* 9887/ut-bin
udp 0 0 *:5353 *:* 8965/mdnsd
udp 0 0 *:5353 *:* 8965/mdnsd
udp 0 0 *:5353 *:* 8965/mdnsd
udp 0 0 *:sunrpc *:* 6087/portmap
udp 0 0 *:ipp *:* 7660/cupsd
udp 0 0 192.168.2.1:ntp *:* 7965/ntpd
udp 0 0 [my internet ip]:ntp *:* 7965/ntpd
udp 0 0 localhost.localdoma:ntp *:* 7965/ntpd
udp 0 0 192.168.1.1:ntp *:* 7965/ntpd
udp 0 0 *:ntp *:* 7965/ntpd
(the above output is somewhat filtered for identifiable info)
This is while running UT original, incidentally; running two clients for UT 2004 made my PC too unusable (I broke the "Dedicated Server" gui button somehow and I haven't bothered to figure out how, nor how to start the UT command-line server yet...). A game is being served, and one client is sitting at the "LAN Servers" screen looking for servers.
It doesn't look to me like UT is broadcasting on any interesting ports, but it is listening on some ports that I wasn't expecting. I opened those ports (1024-1124/udp; UT seems to vary the port that it's listening on within that range), but it didn't help.
EDIT: As you may notice, I have 3 IPs on this machine. There's one for each ethX interface installed. eth1 connects to the Internet through a large LAN. eth0 and eth2 (192.168.1.1 and 192.168.2.1) are both basically crossover cables to special devices that I don't want to bother putting on the LAN.