MacOS: How to list my open network ports?
[ $date ]# 1 noviembre 2016This commands is perfect when you are paranoid, about what ports/processes are open, or what ports/processes are listening.
We have differents methods and outputs, but netstat
and lsof
are my preferreds :
1 2 3 4 5 6 |
$ netstat -atp tcp | grep -i "listen" tcp46 0 0 *.4---- *.* LISTEN tcp4 0 0 *.4---- *.* LISTEN tcp46 0 0 *.http *.* LISTEN tcp4 0 0 localhost.49153 *.* LISTEN tcp4 0 0 localhost.49152 *.* LISTEN |
[email protected] [~]# more #Leer más…