localnet-control
A LAN-first developer tool to share localhost services instantly, now published on PyPI with optional tunnel mode, token auth, and network access controls.
Feb 2026 – now · Open source · Python, Linux, Docker, CI/CD, Git
Published on PyPI as localnet-control.
Overview
localnet-control is a lightweight LAN sharing tool for development workflows. It exposes local services to devices on the same network without requiring internet access.
The CLI supports fast sharing, QR output for mobile access, service discovery, and request visibility using HTTP logs. It is designed for practical day-to-day frontend and API collaboration.
Security and control features include token-based access, allow/deny IP and CIDR filters, and optional Cloudflare tunnel support for temporary public URLs when needed.
The project is fully released on PyPI as localnet-control, making installation and updates straightforward for teams through standard Python tooling.
The problem
Sharing a local frontend or API with teammates and mobile devices often required extra setup or an external service.
What I did
I built and released the CLI end to end, from the local proxy and access controls to packaging, documentation, and PyPI delivery.
- Created a LAN-first sharing workflow with simple share, list, stop, and scan commands.
- Added token authentication, IP/CIDR rules, request logging, QR output, and optional tunnel support.
- Automated a repeatable Python package release workflow and documented practical usage examples.
The result
A published developer tool that makes local testing and collaboration faster while keeping access controls visible and configurable.
- Published on PyPI as localnet-control with an installable CLI package.
- Public source, command documentation, and release history are available on GitHub.
Features
- Published package: localnet-control on PyPI
- LAN-first TCP proxy for sharing localhost apps quickly
- Token auth and IP/CIDR allow-deny access controls
- Optional Cloudflare tunnel support for public sharing
- QR code output and LAN discovery for team workflows
- Linux-first CLI with practical commands for dev environments
- README and source: github.com/hoysengleang/localnet
Try it
$ pip install localnet-controlNotes
What It Does
localnet-control exposes localhost services to your LAN with a lightweight TCP proxy, so teammates and mobile devices can access your dev app instantly without internet dependency.
Install and Quick Start
Install with `pip install localnet-control`, start your app locally, then run `localnet share 3000` to generate a LAN URL and QR code. You can also run from source via the GitHub repository for development mode.
Security and Access Controls
The CLI supports token-based access (`--token`), allow/deny rules for IP and CIDR (`--allow` / `--deny`), live HTTP logs, and optional public sharing with Cloudflare Tunnel (`--tunnel`) when external access is needed.
Release and Ecosystem
The package is published on PyPI as localnet-control (latest 0.2.0 released on March 4, 2026), with Linux-first support, clear command workflow (`share`, `list`, `stop`, `scan`), and full documentation in the project README.