List open ports List open “files”: sudo lsof -i -P -n Open TCP/UDP ports on localhost: sudo nmap -sTU -O 127.0.0.1