The following command will show a list of your TCP and UDP internet connections, along with the PIDs of the programs that are using them:
netstat -tup
As with most commands, you can keep an eye on it by running it through the watch command:
watch netstat -tup