# See and stop local servers on your Mac

> See and stop every local server you left running.

- Canonical URL: https://getedith.pro/extensions/localhost-ports
- Category: [Developer & Data](https://getedith.pro/extensions/category/developer-tools)
- Extension ID: `ports`
- Updated: 2026-11-20
- Part of: [Edith](https://getedith.pro/), a Mac app for macOS 14 or later on Apple silicon, [$35 once for one Mac, plus $7 for each additional Mac](https://getedith.pro/pricing)

Ports is an Edith extension that lists every process listening on your Mac, recognises common dev servers and databases, and stops the one holding a port you need.

## Overview

A day of development leaves servers behind: a Next.js app on 3000, a Vite preview on 5173, an API on 8000, a database or two. When a new server says the port is already in use, the usual fix is a remembered lsof command and a kill. Ports shows the answer directly. Each listening process appears with its port, the project folder it runs in, its full command line, the user that owns it, when it started and how much processor and memory it uses.

Servers are grouped by project and labelled by what they are, from Next.js, Vite, Rails, Django, Flask, FastAPI and Phoenix to Spring, PostgreSQL, Redis, MySQL, MongoDB, Docker and Ollama. A server bound to every network interface is marked as exposed, so you can see at a glance which ones other machines on your network can reach. Open a web server in the browser, copy its address, show its folder in Finder or open it in a terminal.

Stopping is careful. Edith asks the process to exit and waits a few seconds, and only offers a force stop if it is still running. macOS services are never stopped, and secrets in command lines are masked. The list refreshes every two seconds while the page or the widget is on screen and does nothing in the background.

## How to find and free a port on your Mac

1. **Find what is running**: Servers are grouped by project. Exposed ones are reachable from other machines.
2. **Open or copy**: Open a dev server in the browser or copy its address.
3. **Free a port**: Stop asks the process to exit, and offers a force stop if it does not.

## What you can do

- **Local servers and ports**: See which process holds each port, open dev servers and free a port.

## Can I see which app uses a port on a Mac without Terminal?

Not easily. Activity Monitor lists processes but not the ports they listen on, so the usual answer is lsof in Terminal followed by kill. Ports shows every listening port with its process and project, and stops a process with a confirmation instead of a command.

## Use cases

### Port 3000 is already in use

Run ed ports who 3000 to see which project's server holds it, then ed ports kill 3000 --yes to free it, or click Stop on the Ports page.

### Check what your Mac exposes

The Exposed filter shows servers listening on every interface, such as a database started with a default configuration, so you can stop them or bind them to localhost.

### Jump back into a project

The Home and desktop widget lists running dev servers with an Open button, so the app you were working on is one click away.

## Command line and MCP

Run `ed ports` from Terminal, and add `--json` for JSON output. Coding agents connected to the [Edith MCP server](https://getedith.pro/mcp) call the same commands as tools whose names start with `edith_ports`.

```sh
ed ports ls
ed ports who 3000
ed ports kill 3000 --yes
ed ports open 5173
```

## Permissions

- None. Ports reads the processes of the signed-in user without administrator rights.

## Requirements

- macOS 14 or later on Apple silicon
- Edith running

## FAQ

### Why does port 5000 show AirPlay Receiver?

macOS listens on ports 5000 and 7000 for AirPlay when AirPlay Receiver is on in Sharing settings. Ports labels it and never stops it; turn the receiver off or run your server on another port.

### Can it see servers run by other users?

No. Without administrator rights macOS only shows the sockets of your own processes, so a port held by a system daemon can look free.

### Does Ports keep scanning in the background?

No. It scans only while its page or widget is visible, every two seconds, or when you run a command.

### Can I use it from the terminal?

Yes. ed ports ls lists dev servers, ed ports who 3000 names the holder, ed ports open 5173 opens one in the browser and ed ports kill 3000 --yes frees the port.

## Works well with

- [See Running Apps and Their Memory Use on Mac](https://getedith.pro/extensions/running-apps): See what is running, in apps and in the background, and stop what you do not need.
- [Terminal With Broadcast Input and Tabs for Mac](https://getedith.pro/extensions/terminal): A fast built-in terminal with tabs that keeps your shells in one place.
- [SSH Server Manager for Mac With Docker and Files](https://getedith.pro/extensions/ssh-machines): Watch, browse and run your servers and containers from one place.

## Guides

- [How to Kill a Process on a Port on Mac](https://getedith.pro/guides/kill-process-on-port-mac): Kill the process using a port on your Mac with lsof and kill, from Activity Monitor, with a free menu bar app, or see every local server by project first.
- [Fix Port Already in Use on Mac (EADDRINUSE)](https://getedith.pro/guides/port-already-in-use-mac): Port 3000, 5000, 5173 or 5432 already in use on your Mac? Find the cause by framework, from a forgotten dev server to AirPlay Receiver, and fix it safely.

## Use cases

- [Replace Several Paid Developer Tools on a Mac](https://getedith.pro/use-cases/replace-paid-developer-utilities): Cover an SSH manager, a database GUI, an HTTP client, a port killer and a hosts editor on your Mac with one Edith license, and see what each tool costs.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
