how to find which ports are open code example
Example 1: cmd listening ports
C:\> netstat -a -b
Example 2: cmd listening ports
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess
C:\> netstat -a -b
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess