Iroh is a library that connects apps by public key instead of IP, using QUIC, hole punching, and relay fallbacks.
Overview
Iroh exposes an API for dialing peers by public key rather than by IP address. When you ask it to connect to another endpoint, it finds and maintains a path, trying direct links first and falling back to public relay servers when hole punching cannot complete.
Connections build on QUIC through the noq stack, providing authenticated encryption, concurrent streams with priorities, datagram transport, and reduced head-of-line blocking.
Higher-level protocols built on iroh include content-addressed blob transfer, publish-subscribe gossip overlays, and an eventually consistent key-value document store backed by blobs. The core workspace also ships relay client and server code that operators can run for public relays.
Rust is the primary integration path via cargo, with FFI bindings noted for other languages. The stack runs across Linux, Windows, Apple platforms, Android, browsers, embedded targets, and serverless-style deployments, with multipath switching across Wi-Fi, cellular, LAN, Bluetooth, and other transports.
Key features
- Dial endpoints by public key
- QUIC-based encrypted transport
- NAT hole punching with relay fallback
- Multipath across several link types
- Composable blob, gossip, and doc protocols
- Self-hostable relay server software
- Bindings for multiple languages
- Optional managed relay hosting
Use cases
- Peer-to-peer app connectivity
- Remote access without static IPs
- Distributed workloads across nodes
- IoT and embedded device mesh links