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