find all process running on port code example
Example 1: process runninng on particular port
sudo ss -lptn 'sport = :80'
Example 2: see what ports are in use
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess
sudo ss -lptn 'sport = :80'
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess