check port used by application windows code example
Example 1: check which application is using port
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
Example 2: cmd listening ports
C:\> netstat -a -b
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
C:\> netstat -a -b