Network fixes

Find and stop what's using a port

For when you see "address already in use" or "port 3000 is already taken".

Tested on macOS 26 Tahoe · Oct 2026
Tested on Ubuntu 24.04 · Oct 2026
Tested on Windows 11 24H2 · Oct 2026
Fill these in once
  1. See what's using the port
    Terminal
    lsof -i :3000
  2. Stop it
    Terminal
    kill -9 $(lsof -ti :3000)
  1. See what's using the portNeeds sudo
    Terminal · Ubuntu / Debian
    sudo lsof -i :3000
  2. Stop itNeeds sudo
    Terminal · Ubuntu / Debian
    sudo fuser -k 3000/tcp
  1. See what's using the port
    PowerShell
    Get-Process -Id (Get-NetTCPConnection -LocalPort 3000 -State Listen).OwningProcess
  2. Stop it
    PowerShell
    Get-NetTCPConnection -LocalPort 3000 -State Listen | Select-Object -ExpandProperty OwningProcess -Unique | ForEach-Object { Stop-Process -Id $_ -Force }