Kill process using specific port

August 21st 2018

To kill a process that is using a specific port, you can run the following:

Windows (PowerShell):

1
Stop-Process -Id (Get-NetTCPConnection -LocalPort 8000).OwningProcess -Force

Mac (uses npm package):

npx kill-port 8000