Skip to content
Home » How to list used ports on mac

How to list used ports on mac

Let’s start the discussion about How to list used ports on mac in following methods.

List ports on mac

To list all the open networks ports in the terminal run the below command and look over the results. It’s that simple. Run :

$sudo lsof -PiTCP -sTCP:LISTEN

COMMAND     PID      USER         FD   TYPE             DEVICE SIZE/OFF NODE NAME
DOCKER      850  similargeekse   6u   IPv4 0x23c34532a2489301      0z0  TCP localhost:42535 (LISTEN)

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to get current git branch