In Windows, how do I see all listening network ports?
One of the most revealing signs of a system compromise is new open or listening ports. Therefore, you should be aware of the open ports on your computer. Viewing open ports can help you determine if your computer has been compromised.
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 .
For more, see Microsoft Help and Support article 281336.
Search Microsoft Help and Support.
Last modified on February 22, 2009.







