May 12, 2014

Watching active IP connections

Watch + LSOF, refresh every 1second

watch -d -n1 lsof -i

Watch + netstat

watch -d -n1 'netstat -anp | grep -i stream'

Socket connect connections & bound to a port

ss -nap

via Joyent