Listing open ports on MacOS wafrat Apr 18, 2020 I used to use netstat, but this command outputs a really clean status:sudo lsof -PiTCP -sTCP:LISTEN