Checking Open Ports on Your System # Need to check which applications are listening on a port? Here’s how you can do it on macOS. Using lsof # The lsof command lists process IDs, ports, and network addresses: lsof -a -PiTCP -sTCP:LISTEN Example output: lsof -a -PiTCP -sTCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rapportd 1063 user 9u IPv4 ... 0t0 TCP *:59797 (LISTEN) ControlCe 1105 user 8u IPv4 .