below:
[root@server ~]# watch -n 5 "ss -o state established -t -n | egrep -v 127.0.0 |sed -e 's/\( \)\1\+/\1/g' | tr ':' ' ' | cut -f 5 -d ' ' | egrep -v Port |sort | uniq -c"
Every 5.0s: ss -o state established -t -n | egrep -v 127.0.0 |sed -e 's/\( \)\1\+/\1/g' | tr ':' ' ' | cut -f 5 -d ' ' | egrep -v Port |sort | uni... Mon May 4 14:23:14 2015 3 108.93.227.74 2 109.92.99.149 1 178.124.197.145 2 180.215.123.32 1 182.118.25.225 3 216.115.110.119 2 42.116.34.157 1 66.249.75.103 1 68.180.228.31 [root@server ~]#