The following command will show you which processes are listening on which ports, this is extremely useful for checking bandwidth, monitoring use and checking which ports might need opening in a firewall for a specific process such as a game server.
Just make sure that the processing are running before you run the command!
netstat -lnptu