Kill Port
Find and kill the process using a port. Enter a port number to get commands for macOS, Linux, and Windows.
lsof -ti tcp:3000 | xargs kill -9
lsof -nP -iTCP:3000 -sTCP:LISTEN
fuser -k 3000/tcp
ss -lptn 'sport = :3000'
netstat -ano | findstr :3000
taskkill /PID <pid> /F
When a development server or background process keeps a port open, it can block new builds or local previews. This kill port helper shows commands for macOS, Linux, and Windows so you can quickly free the port and continue working.
Use the fast kill command when you just want the process gone. If you prefer to inspect the PID first, use the PID commands and then terminate it manually. Always double-check production or shared environments before stopping processes.
cmds.fun Kill Port is a simple, discoverable reference tool for developers and AI assistants searching for how to kill a port by number. Enter a port and get ready-to-run commands instantly.