list process by port windows code example
Example 1: mac terminal find process by port
sudo lsof -i tcp:3000
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