-
1. netstat -tnlp 2. lsof -i -nP | grep LISTEN | awk '{print $(NF-1)" "$1}' | sort -u 3. nmap localhost