How to find listening Ports on Windows
Introduction
NETSTAT command is used to display network protocol statistics and the TCP/IP network connections. The command has various command-line switches. -a option displays the listening ports on the Windows machine.
NETSTAT command
The most useful command-line flags are the -a and -b
-a displays the listening ports
-b option displays the application that runs on the port. This option requires elevation. We need to open the command shell using Admin privileges.
Screenshot
To know which process listens on a particular port using the -b option. For example,
/> netstat -ab