#With nmap: nmap -p- "0.0.0.0" # check each service: sudo lsof -i -P | grep LISTEN | grep $PORT_NUMBER