How to Find Listening Ports on Windows from Command Line
Any version of Windows, including XP, Vista, 7, Server 2003, Server 2008, and Server 2012, you can use the netstat command to find listening ports on a system. This helps you are troubleshooting if a service or server is actually running on a system. Simply run the following command to find all listening ports on a system:
netstat -an | find /i "listening"