verifying a computers listening ports using nmap
one of the most reliable ways to determine which ports are accessible on a computer is to use nmap
nmap -sT -O localhost
alternately
netstat -an
lsof -i
but since these commands do not connect to the actual computer ports they are less reliable