Show HN: Port Zero – how I learned to stop worrying and love PORT=0

Port Zero is a developer tool that eliminates port conflicts by assigning stable, domain-based URLs to local development processes. It allows developers to run multiple git worktrees simultaneously without managing port numbers.
Why it matters
It addresses a common pain point in local development environments, potentially increasing developer productivity and reducing configuration errors.
Set every port to 0 and start your dev server. Port Zero gives each process or container a stable domain — no port to remember, no EADDRINUSE , ever.
$ PZ_TUNNEL="web.myapp-feat-checkout-redesign.portzero.local" node app.ts $ PZ_TUNNEL="web.myapp-feat-dark-mode.portzero.local" node app.ts web.myapp-feat-checkout-redesign.portzero.local git worktree feat/checkout-redesign Hello from the PortZero Node.js TypeScript process example. PZ_TUNNEL=nodejs-typescript-process.portzero.local:80 localhost_port=52431 web.myapp-feat-dark-mode.portzero.local git worktree feat/dark-mode Hello from the PortZero Node.js TypeScript process example. PZ_TUNNEL=nodejs-typescript-process.portzero.local:80 localhost_port=52431 One machine, many branches Run every branch at once, in git worktrees Each worktree's dev server gets its own self-explanatory URL — no port juggling between branches, no collisions.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in