Pages

Thursday, October 18, 2012

Command to check the open and listening ports on Windows Machine

We can use following commands on a windows machine to find all open ports: 

1. To list all the open ports on machine :
  •     netstat -an |find /i "listening" 
2. To list all the established connections on machine : 
  •    netstat -an |find /i "Established"
3. To list the processes owning the established connection :
  •  netstat -ao |find /i "Established"

ENJOY :-)