A handy command or script for seeing what happens in your computer network.
Command with sudo
sudo netstat -peanut
Command as root (su)
su -c "netstat -peanut"
A script with Xterm and root
#!/bin/bash
xterm -hold -e su -c "netstat -peanut"
More about netstat: https://manpages.debian.org/testing/net-tools/netstat.8.en.html