netstat -n |awk '/^tcp/ {++S[$NF]} END {for (a in S) print a(S),a}'|sort -rn|head -10

ifconfig eth0|sed -n p2|awk -F ":" print $2