one liners and commands
-
List active connections on a port
netstat -anp | grep :6379 | grep -i established
-
List active connection on a port and sort them uniquely
netstat -anp | grep :6379 | grep -i established | awk '{print $5}' | cut -d ':' -f1 | uniq