Back to Projects
Go
system layerFeatured

Local Tunnel — Self-Hosted Port Forwarder

A self-hosted port forwarding tool in Go, enabling secure public exposure of localhost services with a local-network mode.

⭐ 1 stars🍴 0 forks🕒 Updated 9d ago
developer-toolsgolangport-forwardingself-hostedtunnel

Signal

Incoming TCP connection requests from external clients targeting a registered local port.

Decision

Routes tunnel requests to the correct local service using a registered subdomain and port mapping table.

System

Go-based server with a lightweight relay protocol. Clients register ports on startup; the server multiplexes traffic over a persistent control channel.

Trust

No third-party cloud dependency — entire infrastructure is self-controlled. MIT licensed and fully auditable.

Engineering Challenges

Designing a robust keep-alive and reconnection strategy to handle flaky client connections without dropping active tunnels.