Fill these in once
- See what's using the port
lsof -i :3000 - Stop it
kill -9 $(lsof -ti :3000)
- See what's using the port
lsof -i :3000Nothing listed? It may belong to another user or a system service. Put sudo in front of both commands.
- Stop it
fuser -k 3000/tcp
- See what's using the port
Get-Process -Id (Get-NetTCPConnection -LocalPort 3000 -State Listen).OwningProcess - Stop it
Get-NetTCPConnection -LocalPort 3000 -State Listen | Select-Object -ExpandProperty OwningProcess -Unique | ForEach-Object { Stop-Process -Id $_ -Force }