How-to guides for dev servers and ports on a Mac
The commands you need when a port is taken or a dev server will not die, each one tested on macOS. And, under every guide, how Rungeist does the same job in your menu bar.
How to kill the process on port 3000 on a Mac
Find what is using port 3000 on your Mac and stop it with lsof and kill. Includes the one-liner, a stubborn process, a process that comes back, and Docker.
Read the guidelsof -nP -iTCP:3000 -sTCP:LISTENFix EADDRINUSE: address already in use (Node.js on Mac)
What EADDRINUSE means and how to fix it on a Mac: find the old process, stop it, or start on another port. Includes the AirPlay Receiver trap on ports 5000 and 7000.
Read the guideError: listen EADDRINUSE: address already in use :::3000What is running on a port on a Mac: find the process
How to see what is listening on a port on your Mac with lsof: one port, every listener, which project a process belongs to, other users' processes and Docker.
Read the guidelsof -nP -iTCP:3000 -sTCP:LISTEN
Skip the commands
Rungeist sits in your menu bar and lists the dev servers running from your project folders, with the port, the project and how long each has been running. Stop one with two clicks. It ends the whole process group, so your shell, editor and AI session are not touched.