Localhost Academy · 7 lessons · ~48 minutes

The localhost field guide.

Short lessons for things even experienced developers forget until something refuses to stop. Read them in order, or jump to the one that matches today's problem.

0 of 7 complete
  1. 01

    Localhost is a route back to yourself.

    localhost, 127.0.0.1, and ::1 point to your own machine. When a browser opens http://localhost:3000, it asks your Mac to connect to a process on your Mac.

    5 min read
  2. 02

    A port is a numbered door.

    Many processes can run on one machine because each listens on a different port. React might use 3000, Redis 6379, FastAPI 8000, and Ollama 11434.

    6 min read
  3. 03

    A listener is the process waiting at the door.

    A listener is a running process that has opened a port and is waiting for connections. Localhost Explorer shows the process name, PID, command, and folder behind it.

    7 min read
  4. 04

    Wildcard listeners deserve attention.

    0.0.0.0:3000 or *:3000 means the process is listening on all interfaces, not only loopback. Whether other devices can reach it depends on firewall, network, and app settings.

    8 min read
  5. 05

    The PID is not always the owner.

    Killing a PID can stop the current process, but launchd, Homebrew, an editor, or a desktop app may own the lifecycle and start it again.

    7 min read
  6. 06

    The folder tells the story.

    A port becomes easier to understand when you can see the working directory. That folder usually reveals the project, tool, or database that launched the listener.

    6 min read
  7. 07

    The source tells you how to control it.

    Terminal commands, Homebrew services, containers, IDE helpers, app helpers, and macOS services have different lifecycle rules. The right owner matters more than the loudest PID.

    9 min read