“What project owns port 4178?”
Follows process ancestry and working directories back to the repository, branch, Git worktree, and nearest application manifest.
lsof finds a PID. Port Tools finds the project behind it.
A local-first macOS menu-bar control plane for the development services already running on your Mac. Reconstruct repositories, Git worktrees, application manifests, stable *.localhost routes, and identity-bound Safe Stop without changing how you start your apps.
brew install --cask Popcornnnnnnnn/tap/port-tools
Click any service to inspect reconstructed Git and manifest evidence, edit its *.localhost alias, toggle the port-free helper, or walk through Safe Stop, 3-second Force Stop, and Docker refusal.
127.0.0.1:24678 · Vite HMR status socket (loopback)127.0.0.1:4322 · Preview docs health endpoint (HTTP 404)127.0.0.1:6379 · redis-server (non-HTTP TCP)127.0.0.1:5432 · postgres (non-HTTP TCP)*:5353 · mDNSResponder (system)Port Tools does not replace the CLI and OS utilities developers already rely on. It connects the missing project context between them.
Follows process ancestry and working directories back to the repository, branch, Git worktree, and nearest application manifest.
Groups applications by repository checkout and separates openable Web pages from background supporting services.
Assigns a persistent address such as phone-studio.localhost (or :17890 without the helper), so you never memorize random dev ports.
Shows a reviewed stop plan, revalidates PID identity before SIGTERM, confirms listeners released, and refuses Docker or shared runtimes.
| Tool | Best at | What Port Tools adds |
|---|---|---|
lsof / netstat |
Sockets, ports, and PIDs | Repository, worktree, application manifest, Web classification, and a usable address |
| Activity Monitor | Process and resource inspection | A Web-service-first view organized around development projects |
kill-port / fkill |
Freeing a port quickly | Ownership evidence, refusal rules, identity revalidation, and listener-release verification |
| Portless | Starting apps on stable named URLs | Discovery and classification of services that are already running |
| Caddy | Flexible reverse-proxy infrastructure | Automatic local inventory and project-aware route ownership |
| Docker Desktop | Container and published-port management | One view for host processes, worktrees, applications, and conservative Docker handling |
The native SwiftUI menu-bar app talks to a bundled Go core over a private, owner-only Unix socket—keeping scanning, probing, routing, and Safe Stop self-contained on your Mac.
Scan live HTTP/HTTPS listeners without changing how your app was started.
Match process trees and cwd to Git repo, worktree, manifest, and page title.
Assign and persist a clean *.localhost route atomically across restarts.
Jump straight to the page or copy either the alias or original :port URL.
Revalidate target PIDs, send SIGTERM, and verify the socket was released.
Communicates over a 0600 owner-only Unix socket (runtime/core.sock inside a 0700 directory). No Python, Node.js, Homebrew, or external proxy needed at runtime.
Optional SMAppService LaunchDaemon binds only 127.0.0.1:80 and [::1]:80 and forwards solely to 127.0.0.1:17890, falling back cleanly if busy or unapproved.
Docker, other-user, shared-runtime, and unattributed listeners are refused. Only unmanaged owned services ignoring SIGTERM can trigger the 3-second red SIGKILL sheet.
Stops re-probing already-classified live listeners, backs off HTTP 501 responses, batches process inspection, and runs background refreshes on a 5-minute cadence.
Install via Homebrew Cask, download the signed and notarized Apple Silicon DMG, or build the self-contained bundle locally with Go and Xcode Command Line Tools.