Check if ports are used by other apps

Windows
Commandline

Powershell

Macintosh

PreviousRetrieve the helmut4 client logNextCheck existence of MoovIT authority certificate on windows client
Last updated




Last updated
::: Find application, which is running on port "8881" - will list result for IPv4 + IPv6
for /f "tokens=5" %a in ('netstat -aon ^| find "8881"') do @tasklist | findstr %a
# Without admin rights for Port 8880 and 8881
Get-Process -Id (Get-NetTCPConnection -State Listen -LocalPort 8881).OwningProcess
Get-Process -Id (Get-NetTCPConnection -State Listen -LocalPort 8880).OwningProcess
# With admin rights (run as administrator) to get also the username for port 8880 and port 8881
Get-Process -IncludeUserName -Id (Get-NetTCPConnection -State Listen -LocalPort 8881).OwningProcess
Get-Process -IncludeUserName -Id (Get-NetTCPConnection -State Listen -LocalPort 8880).OwningProcess
# Find application, which is running on port "8881"
lsof -i :8881