Alongside heyvm and heyvmd, the local-proxy crate ships two small binaries
that power peer-to-peer connectivity over iroh.
hey-proxy
A peer-to-peer TCP proxy powered by iroh. Expose a local port to a peer, or connect to one a peer exposed.
# Expose a local port; prints a heyo:// URL
hey-proxy --port 8080
# Connect to a peer's exposed service
hey-proxy --connect heyo://<ticket>
| Flag | Purpose |
|---|---|
-p, --port <port> |
Local port to expose |
-c, --connect <url> |
Connect to a heyo:// URL |
--relay <url> |
Relay server for short tickets |
hey-relay
A ticket relay server for hey-proxy, used to hand out short connection tickets.
hey-relay --port <port> --bind <addr>
| Flag | Purpose |
|---|---|
--port <port> |
Listen port |
--bind <addr> |
Bind address |
These are the building blocks the daemon uses to make your sandboxes reachable; you rarely run them directly, but they are useful for ad-hoc P2P forwarding.