check all service is running on which port windows 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