Mac command to view all opened port

netstat -anvp tcp | awk 'NR<3 || /LISTEN/'|sort -k 4

Leave a Reply

Your email address will not be published. Required fields are marked *