show process using port windows code example
Example 1: list process using port
sudo lsof -n -i :80 | grep LISTEN
Example 2: find out process using port windows
netstat -ano | findstr 8080
Example 3: see what ports are in use
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess