how to check whats running on a port in mac code example Example: running ports in mac sudo lsof -PiTCP -sTCP:LISTEN