how to check a port of specific process in mac code example Example: running ports in mac sudo lsof -PiTCP -sTCP:LISTEN