From http://superuser.com/questions/370965/how-can-i-check-which-ports-are-busy-and-which-ports-are-free-on-my-linux-machin?answertab=votes#tab-top
sudo netstat -tulpn sudo netstat -antup sudo lsof -i -n -P # You can verify process using port /proc: ls -l /proc/<PID>/exe