In Windows, you can use the netstat.exe program to view all listening network ports. To do so, from a command prompt, type netstat . You can use also use options to get more information, as in the following examples:
netstat -o Show the process IDs (PIDs) associated with each port
netstat -a Show all
netstat -n Show numbers of ports
You can also combine options, e.g., netstat -oan .
