Monday, June 2, 2008

listening or open ports on my computer!!!

The NETSTAT command will show you whatever ports are open or in use :

netstat -an find /i "listening"
netstat -an find /i "established"


You can add it to a file :

netstat -an find /i "listening" > c:\openports.txt


To get a list of all the owning process ID associated with each connection use :

netstat -ao find /i "listening"


To see all open, established, closing and other used ports type:

netstat -a

No comments: