Skip to main content

Find open ports

To find open ports in either a server or a MacOS machine the following command can be used:

sudo lsof -i -n -P | grep TCP | grep LISTEN