In ssh Use this command netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n Rep is appreciated