Showing posts with label Windows Windows XP Ports 16 Ports Hub Windows XP 3. Show all posts
Showing posts with label Windows Windows XP Ports 16 Ports Hub Windows XP 3. Show all posts

Get the list of open ports using command prompt

0 comments
Step 1

1. Start->Run->cmd ( Go to command prompt)

2. Use command as follows to get a list of listening ports in your system.
C:\>netstat -an |find /i “listening”

Step 2

So you have the list of listening ports. Now if you wish to have a hard copy of the list or you wish to Store it as a list. Of course you can copy from the windows displayed but that doesn’t seem neat. There is a small command which can help you store this list as a .txt file.
C:\>netstat -an |find /i “listening” > c:’openports.txt

Step 3

You can also get a list of established connections by replacing the ‘listening’ by ‘established’ in the earlier command.
C:\>netstat -an |find /i “established”