PortZero lets developers use named subdomains instead of port numbers locally
A developer built PortZero, an open-source tool (GPLv3) that eliminates local port conflicts by routing traffic through named subdomains instead of numbered ports. The tool watches for processes or Docker containers with a special environment variable, then automatically creates a virtual network interface, assigns a virtual IP, and sets up a local DNS record. It forwards incoming TCP connections to whatever random port the OS has assigned to the actual process, allowing multiple services to run on port 80 simultaneously without conflicts. PortZero also supports local HTTPS by generating a local certificate authority and registering it on the user's machine. A paid cloud tunnel feature is available for accessing local apps from other devices.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in