netstat windows to view ports in use 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