How would you know if a port is open or not.
Try to ping the port. The answer they were looking for was probably a port sniffer. Or network monitoring tool like wireshark.
On the server itself, use "netstat -an" to check to see which ports are listening From outside, just "telnet host port" to see if the connection is refused, accepted, or timeouts
Using nmap is the best way I've found with the most success rate overall. Nmap can do TCP and UDP based port scans.
Jun 12, 2012