How to see all open ports on Mac

The most convenient is to launch the following command:

lsof -i -P | grep -i “listen”

It will show you a series of lines, more or less depending on the open ports, where you can also see the applications that have them open.

nginx 300 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 301 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 302 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 303 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 304 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 305 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 306 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) nginx 307 julian 6u IPv4 0x7666e2984bef4427 0t0 TCP localhost:80 (LISTEN) ControlCe 424 julian 19u IPv4 0x7666e2984beeeef7 0t0 TCP *:7000 (LISTEN) ControlCe 424 julian 20u IPv6 0x7666e2a6b0d72e47 0t0 TCP *:7000 (LISTEN) ControlCe 424 julian 21u IPv4 0x7666e2984beef98f 0t0 TCP *: 5000 (listen) Controlce 424 Julian 22u IPV6 0x7666E2A6B0D73547 0T0 TCP *: 5000 (listen) Rapportd 439 Julian 3u IPV4 0x7666e2984 47 0t0 TCP *:49155 (LISTEN) Dropbox 496 julian 105u IPv6 0x7666e2a6b0d75147 0t0 TCP *:17500 (LISTEN) Dropbox 496 julian 106u IPv4 0x7666e2984bef1957 0t0 TCP *:17500 (LISTEN) Dropbox 496 julian 137u IPv4 0x7666e2984beeb98f 0t0 TCP localhost:17600 (LISTEN ) Dropbox 496 julian 144u IPv4 0x7666e2984beed957 0t0 TCP localhost:17603 (LISTEN) redis-ser 521 julian 6u IPv4 0x7666e2984bef245f 0t0 TCP localhost:6379 (LISTEN) redis-ser 521 julian 7u IPv6 0x7666e2a6b0d74347 0t0 TCP localhost:6379 (LISTEN) mariadbd 650 julian 81u IPv6 0x7666e2a6b0d74a47 0t0 TCP *:3306 (LISTEN) mariadbd 650 julian 82u IPv4 0x7666e2984beeaef7 0t0 TCP *:3306 (LISTEN)

See also  personal project

Hope this can help you!!

Loading Facebook Comments ...
Loading Disqus Comments ...