# gateway-go

> gateway-go is a self-hosted, open-source LAN gateway that pairs with OpenIoTHub client via QR code to expose local ports over NAT traversal and P2P tunnels.

- **Category:** VPN
- **Licence:** MIT
- **Latest version:** v2.0.12
- **Open source:** oss
- **Languages:** Go
- **Platforms:** Docker, OpenWrt, Homebrew, Scoop, Snap
- **Tags:** Iot, Cross Platform, Gateway, Qr Code, Esp8266, Esp32, Remote Access, Tunnel, Nat Traversal, Docker, Golang, Clients, Nat, Openwrt, P2p, Arduino, Socks, Nps, Frp, Open, Frp Alternative, Frpc, Frps, Iothub, Openiothub, Goreleaser, Iothub Platform

## Description

gateway-go is the on-premises component of the OpenIoTHub ecosystem. It runs continuously on a local network (via Docker, binary packages, Homebrew, Snap, Scoop, deb/rpm, or OpenWrt opkg) and displays a QR code. The OpenIoTHub mobile/desktop client scans this code to register the gateway, after which users can remotely access any LAN service or port through P2P or relayed tunnels. The gateway supports mDNS (port 5353/udp) and a custom port (34323), uses a simple YAML config, and builds for Linux, Windows, macOS, Android, and many architectures. It is a companion to the OpenIoTHub client and the server-go relay; no separate database or external dependencies are required.

## Links

- [Homepage](https://github.com/openiothub/gateway-go)
- [Website](http://github.com/OpenIoTHub)
- [Docker](openiothub/gateway-go)
- [Documentation](https://docs.iothub.cloud)
- [GitHub Repository](https://github.com/OpenIoTHub/gateway-go)

---
Source: https://selfhost.directory/project/gateway-go