> Faqs > Cómo ver todos los puertos abiertos en Mac

Cómo ver todos los puertos abiertos en Mac

Hola! Quisiera saber qué puertos abiertos tiene mi ordenador para encontrar posibles colisiones en el puerto de servicios que no arrancan.

¿Cómo puedo ver todos los puertos abiertos en MacOS?

Respuestas

Lo más cómodo es lanzar el comando siguiente:

lsof -i -P | grep -i "listen"

Te mostrará una serie de líneas, más o menos depende de los puertos abiertos, donde además puedes ver las aplicaciones que los tienen abiertos.

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 0x7666e2984bef0427      0t0  TCP *:49155 (LISTEN)
rapportd  439 julian    4u  IPv6 0x7666e2a6b0d73c47      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)

Espero que te sirva!!

Julian
1074 44 83 45
Perfecto!! te agradezco mucho tu rápida respuesta. Un saludo!