To monitor TCP and UDP connections the following command is very useful:
netstat -t -u
to have a continuous update use the watch command:
watch netstat -t -u
There is a much stronger tool for real time analysis called iptraf.
It is quite self explanatory :
at command line run
iptraf
This tool has many functions and is text mode menu ncurses based application really worth learning.