Mac command to view all opened port
netstat -anvp tcp | awk 'NR<3 || /LISTEN/'|sort -k 4