# iroh | number zero | Knowledge Base | Instagit

IP addresses break, dial keys instead. Modular networking stack in Rust.

GitHub Stars: 9.7k

Repository: https://github.com/n0-computer/iroh

---

## Articles

### [Graceful Shutdown of Iroh Endpoints and Routers: A Complete Guide](/n0-computer/iroh/graceful-shutdown-of-iroh-endpoints-and-routers)

Learn how to gracefully shut down iroh endpoints and routers using endpoint.close().await for clean QUIC termination and router shutdown. Ensure UDP sockets close properly.

- Tags: how-to-guide
- Published: 2026-07-02

### [Using iroh on Wasm Browser Platforms: Complete Configuration Guide](/n0-computer/iroh/using-iroh-on-wasm_browser-platforms)

Configure iroh for Wasm browser platforms. This guide details its use with cfg(wasm_browser) for relay-only networking, disabling IP transports.

- Tags: how-to-guide
- Published: 2026-07-02

### [Using iroh Presets Like N0 for Quick Endpoint Setup](/n0-computer/iroh/using-iroh-presets-like-n0-for-quick-endpoint-setup)

Quickly set up iroh endpoints with presets like N0. Deploy TLS crypto providers, PKARR DNS, address resolution and relay configuration instantly.

- Tags: getting-started
- Published: 2026-07-02

### [Building Multi-Protocol Servers with Router in iroh](/n0-computer/iroh/building-multi-protocol-servers-with-router-in-iroh)

Learn to build multi-protocol servers with iroh Router. Handle multiple protocols simultaneously on a single QUIC Endpoint using ALPN. Explore early connection filtering and graceful shutdown.

- Tags: how-to-guide
- Published: 2026-07-02

### [Monitoring Connection Stats and Path Metrics in iroh: A Complete Guide](/n0-computer/iroh/monitoring-connection-stats-and-path-metrics-in-iroh)

Learn to monitor connection stats and path metrics in iroh with our complete guide. Discover real-time counters for socket traffic and connection events via the Endpoint metrics API.

- Tags: how-to-guide
- Published: 2026-07-02

### [Securely Managing Endpoint Secret Keys and Endpoint IDs in iroh](/n0-computer/iroh/securely-managing-endpoint-secret-keys-and-endpoint-ids-in-iroh)

Securely manage endpoint secret keys and endpoint IDs in iroh. Generate or inject a SecretKey during Endpoint construction for local security and a shareable PublicKey as your EndpointId.

- Tags: best-practices
- Published: 2026-07-02

### [Understanding iroh Relay Servers and NAT Traversal: P2P Connectivity in n0-computer/iroh](/n0-computer/iroh/understanding-iroh-relay-servers-and-nat-traversal)

Learn how iroh relay servers and NAT traversal enable P2P connectivity in n0-computer/iroh. Discover QUIC connections, TURN-like intermediaries, and hole-punching for seamless communication.

- Tags: deep-dive
- Published: 2026-07-02

### [Configuring DNS and Pkarr Address Lookup Services in iroh](/n0-computer/iroh/configuring-dns-and-pkarr-address-lookup-services-in-iroh)

Learn to configure iroh's DNS and Pkarr address lookup services using the Endpoint builder API for peer discovery. Translate EndpointId to EndpointAddr efficiently.

- Tags: how-to-guide
- Published: 2026-07-02

### [How to Implement Path Selection Strategies in Iroh: A Complete Guide to Custom Network Path Selection](/n0-computer/iroh/how-to-implement-path-selection-strategies-in-iroh)

Learn to implement custom path selection strategies in Iroh using the PathSelector trait. Guide your network traffic for optimal performance with this comprehensive tutorial.

- Tags: how-to-guide
- Published: 2026-07-02

### [How to Use Custom Transports in iroh with the unstable-custom-transport Feature](/n0-computer/iroh/using-custom-transports-in-iroh-with-unstable-custom-transport-feature)

Learn to use custom transports in iroh with the unstable-custom-transport feature. Route packets over Bluetooth or Tor while retaining QUIC and NAT traversal logic.

- Tags: how-to-guide
- Published: 2026-07-02

### [Configuring endpoint connection hooks for authentication in iroh](/n0-computer/iroh/configuring-endpoint-connection-hooks-for-authentication-in-iroh)

Secure iroh connections with custom authentication using endpoint connection hooks. Intercept QUIC handshakes for token-based pre-authorization. Learn more.

- Tags: how-to-guide
- Published: 2026-07-02

### [How iroh Memory Address Lookup Works for Local Peer Discovery](/n0-computer/iroh/how-does-irohs-memory-address-lookup-work-for-local-peer-discovery)

Learn how iroh memory address lookup enables zero-latency local peer discovery using a thread-safe BTreeMap for instant, network-free connections.

- Tags: internals
- Published: 2026-06-26

### [How to Use the iroh Router to Compose Multiple Protocols on a Single Endpoint](/n0-computer/iroh/how-to-use-the-router-to-compose-multiple-protocols-on-a-single-endpoint)

Learn how to use the iroh Router to compose multiple protocols on a single endpoint by dispatching incoming connections to registered handlers based on their ALPN identifier.

- Tags: how-to-guide
- Published: 2026-06-26

### [How to Configure Relay Mode in iroh: Complete Guide to Custom and Default Relays](/n0-computer/iroh/how-to-configure-relay-mode-in-iroh)

Learn to configure relay mode in iroh with our complete guide. Explore default, staging, disabled, and custom relay options for optimal NAT traversal.

- Tags: how-to-guide
- Published: 2026-06-26

### [How iroh EndpointId and SecretKey Authentication Works](/n0-computer/iroh/how-does-irohs-endpointid-and-secretkey-authentication-work)

Understand iroh EndpointId and SecretKey authentication. Learn how Ed25519 keys create a PKI-free identity system for secure communication.

- Tags: deep-dive
- Published: 2026-06-26

### [How to Use Datagrams in iroh QUIC Connections: Unreliable Messaging Guide](/n0-computer/iroh/how-to-use-datagrams-in-iroh-quic-connections)

Learn how to use datagrams in iroh QUIC connections. Send and receive small, unreliable packets for low-latency signaling with iroh's Connection type.

- Tags: how-to-guide
- Published: 2026-06-26

### [How iroh Handles Connection Migration Between Direct and Relayed Paths](/n0-computer/iroh/how-does-iroh-handle-connection-migration-between-direct-and-relayed-paths)

Discover how iroh effortlessly migrates connections between direct and relayed paths using QUIC address migration and a latency-biased path selector for seamless user experiences.

- Tags: how-to-guide
- Published: 2026-06-26

### [How to Implement Custom Transport Layers in iroh Using the Unstable Custom Transports Feature](/n0-computer/iroh/how-to-implement-custom-transport-layers-with-irohs-unstable-custom-transports-feature)

Learn to implement custom transport layers in iroh using the unstable custom transports feature. Extend iroh's networking by implementing the CustomTransport trait and registering your transport.

- Tags: how-to-guide
- Published: 2026-06-26

### [How to Configure Address Lookup Services in iroh](/n0-computer/iroh/how-to-configure-address-lookup-services-in-iroh)

Learn how to configure address lookup services in iroh. Implement traits or use builders like PkarrPublisher and DnsAddressLookup for seamless integration.

- Tags: how-to-guide
- Published: 2026-06-26

### [How to Implement Custom Protocol Handlers with ALPN in iroh](/n0-computer/iroh/how-to-implement-custom-protocol-handlers-with-alpn-in-iroh)

Learn to implement custom protocol handlers in iroh using ALPN. Route QUIC connections effectively by registering your handler with RouterBuilder accept. Maximize performance and control.

- Tags: how-to-guide
- Published: 2026-06-26

### [How Does Iroh Connection Migration Work After Direct Connection Is Established?](/n0-computer/iroh/how-does-irohs-connection-migration-work-after-direct-connection-is-established)

Discover how Iroh connection migration maintains streams during network path changes. Learn about QUIC transport and seamless peer-to-peer communication.

- Tags: deep-dive
- Published: 2026-06-25

### [Iroh Relay Modes Explained: Disabled, Default, Staging, and Custom Configurations](/n0-computer/iroh/what-are-irohs-different-relay-modes)

Explore Iroh's relay modes Disabled, Default, Staging, and Custom. Understand how these configurations manage node connections via relay servers when direct links fail.

- Tags: deep-dive
- Published: 2026-06-25

### [How to Configure Iroh to Use Staging Relay Servers: 3 Methods Explained](/n0-computer/iroh/how-to-configure-iroh-to-use-staging-relay-servers)

Learn 3 easy methods to configure Iroh to use staging relay servers. Update config, use command-line flags, or set env variables for seamless integration with n0-computer/iroh.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Use EndpointHooks in Iroh for Connection Filtering](/n0-computer/iroh/how-to-use-endpointhooks-in-iroh-for-connection-filtering)

Control Iroh connections with EndpointHooks. Learn how to use before_connect for outbound filtering and after_handshake for inbound validation to accept or reject connections.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Open a Unidirectional QUIC Stream with Iroh](/n0-computer/iroh/how-to-open-a-unidirectional-quic-stream-with-iroh)

Open a unidirectional QUIC stream with Iroh by calling conn.open_uni().await?. Get your QuicClient ready with the correct ALPN for one-way data transmission.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Open a Bidirectional QUIC Stream with Iroh](/n0-computer/iroh/how-to-open-a-bidirectional-quic-stream-with-iroh)

Learn to open a bidirectional QUIC stream with Iroh. Instantiate a QuicClient, create a noq::Connection, and use open_bi() for full-duplex communication.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Bind an Iroh Endpoint to a Specific IP Address and Port](/n0-computer/iroh/how-to-bind-an-iroh-endpoint-to-a-specific-ip-address-and-port)

Learn how to bind an Iroh endpoint to a specific IP address and port using the builder pattern. Configure your UDP socket for reliable networking.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Disable Relay Servers in Iroh: Complete Configuration Guide](/n0-computer/iroh/how-to-disable-relay-servers-in-iroh)

Learn how to disable relay servers in Iroh with our complete configuration guide. Follow simple steps to modify your Endpoint builder for optimal network control.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Configure Custom Relay Servers for Iroh](/n0-computer/iroh/how-to-configure-custom-relay-servers-for-iroh)

Configure custom relay servers for Iroh easily. Learn how to create a RelayMap and pass it to your endpoint builder for enhanced control and flexibility.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Connect to an Iroh Endpoint Using Only Its EndpointId](/n0-computer/iroh/how-to-connect-to-an-iroh-endpoint-using-only-its-endpointid)

Connect to an Iroh endpoint using only its EndpointId by enabling the N0 preset. Automatically resolve addresses and establish QUIC connections without manual IP or relay setup.

- Tags: how-to-guide
- Published: 2026-06-25

### [How Iroh's Address Lookup Service Works: DNS, PKARR, and Pluggable Endpoint Discovery](/n0-computer/iroh/how-does-irohs-address-lookup-service-work)

Discover how Iroh's address lookup service leverages DNS, PKARR, and pluggable endpoints for seamless remote identifier resolution. Learn the technical details behind this essential feature.

- Tags: deep-dive
- Published: 2026-06-25

### [How to Use Iroh's Default Relay Servers Provided by n0](/n0-computer/iroh/how-to-use-irohs-default-relay-servers-provided-by-n0)

Easily use Iroh's default relay servers. Configure your client with RelayMode::Default to connect to n0's production infrastructure automatically. Get started now!

- Tags: how-to-guide
- Published: 2026-06-25

### [Iroh Connections Fallback to Relay Servers: Automatic Failover Explained](/n0-computer/iroh/can-iroh-connections-fallback-to-relay-servers-if-direct-connection-fails)

Discover how Iroh connections automatically fallback to relay servers when direct P2P connections fail, ensuring reliable data transfer with path selection.

- Tags: deep-dive
- Published: 2026-06-25

### [How to Dial Another Endpoint by Its Public Key in Iroh](/n0-computer/iroh/how-to-dial-another-endpoint-by-its-public-key-in-iroh)

Learn how to dial another Iroh endpoint using its public key. Construct an EndpointAddr and connect directly, establishing a secure P2P connection. Get started now.

- Tags: how-to-guide
- Published: 2026-06-25

### [What Is the Role of Relay Servers in Iroh?](/n0-computer/iroh/what-is-the-role-of-relay-servers-in-iroh)

Explore how Iroh relay servers act as encrypted fallback transports, forwarding QUIC datagrams when direct connections fail, guaranteeing connectivity for all users.

- Tags: deep-dive
- Published: 2026-06-25

### [How Iroh Handles NAT Traversal for Peer-to-Peer Connections](/n0-computer/iroh/how-does-iroh-handle-nat-traversal-for-peer-to-peer-connections)

Discover how Iroh tackles NAT traversal for p2p connections. Learn about address discovery, UDP hole-punching, and relay fallbacks in this detailed guide.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Create an Iroh Endpoint: Complete Guide to QUIC Peer-to-Peer Networking](/n0-computer/iroh/what-is-an-iroh-endpoint-and-how-to-create-one)

Learn to create an Iroh Endpoint for QUIC peer-to-peer networking. This guide covers managing transport, identity, and NAT traversal with the Iroh Builder pattern.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Establish a Peer-to-Peer QUIC Connection with Iroh](/n0-computer/iroh/how-to-establish-peer-to-peer-quic-connection-with-iroh)

Learn how to establish a peer-to-peer QUIC connection with Iroh. Discover direct connections via relay servers, QAD, and authenticated UDP handshakes.

- Tags: how-to-guide
- Published: 2026-06-25

### [How to Integrate iroh with Existing QUIC Implementations and Custom Socket Factories](/n0-computer/iroh/how-do-i-integrate-iroh-with-existing-quic-implementations-or-custom-socket-factories)

Integrate iroh with custom QUIC implementations and socket factories by enabling the unstable-custom-transports feature and implementing core traits for seamless networking.

- Tags: how-to-guide
- Published: 2026-06-24

### [How to Debug Connection Issues Using iroh’s Qlog Integration](/n0-computer/iroh/how-do-i-debug-connection-issues-using-irohs-qlog-integration)

Debug iroh connection issues with qlog integration. Capture QUIC traces to reveal handshake failures, path migrations, and congestion events. Enable qlog and set environment variables for detailed insights.

- Tags: how-to-guide
- Published: 2026-06-24

### [RelayMode Default vs Disabled vs Custom in iroh: Endpoint Connection Modes Explained](/n0-computer/iroh/what-is-the-difference-between-relaymode-default-relaymode-norelay-and-relaymode-custom)

Understand iroh's RelayMode Default NoRelay and Custom. Learn how to configure endpoint connection modes for NAT traversal and direct peer-to-peer connections.

- Tags: deep-dive
- Published: 2026-06-24

### [How to Implement a Custom ProtocolHandler in iroh](/n0-computer/iroh/how-do-i-implement-a-custom-protocolhandler-for-my-applications-protocol)

Implement a custom ProtocolHandler in iroh by creating a type that implements the ProtocolHandler trait and registering it with RouterBuilder using a unique ALPN identifier. Learn how to add your application's protocol.

- Tags: how-to-guide
- Published: 2026-06-24

### [iroh Metrics for Monitoring Endpoint and Connection Health: Complete Reference](/n0-computer/iroh/what-metrics-does-iroh-expose-for-monitoring-endpoint-and-connection-health)

Discover iroh metrics for endpoint and connection health. Monitor data transfers, connection lifecycles, path quality, NAT traversal, and actor loop health with real time visibility.

- Tags: api-reference
- Published: 2026-06-24

### [How to Handle Connection Migration from Relay to Direct Peer-to-Peer in iroh](/n0-computer/iroh/how-do-i-handle-connection-migration-from-relay-to-direct-peer-to-peer-connections)

Learn how to handle connection migration from relay to direct peer-to-peer in iroh. Enable QUIC handshake migration and configure a relay map for seamless upgrades.

- Tags: how-to-guide
- Published: 2026-06-24

### [How iroh Connection Hooks Work for Authentication and Authorization](/n0-computer/iroh/how-do-iroh-connection-hooks-work-for-authentication-and-authorization)

Learn how iroh connection hooks enable authentication and authorization by intercepting connection attempts. Implement before connect and after handshake callbacks to control peer access.

- Tags: deep-dive
- Published: 2026-06-24

### [How to Implement Custom Transport Protocols with Iroh's unstable-custom-transports Feature](/n0-computer/iroh/how-do-i-implement-custom-transport-protocols-with-irohs-unstable-custom-transports-feature)

Learn to implement custom transport protocols in Iroh by enabling unstable-custom-transports and implementing key traits. Route packets with your own protocol for enhanced control.

- Tags: how-to-guide
- Published: 2026-06-24

### [How EndpointId, PublicKey, and SecretKey Work in iroh: Identity and Authentication Explained](/n0-computer/iroh/what-is-the-difference-between-endpointid-publickey-and-secretkey-in-iroh)

Understand iroh's EndpointId PublicKey and SecretKey. Learn how the secret key authenticates endpoints and the public key identifies them in this identity and authentication guide.

- Tags: deep-dive
- Published: 2026-06-24

### [Iroh Development Roadmap: QUIC Transport, Scalable Relays, and Production APIs](/n0-computer/iroh/what-roadmap-iroh-development)

Explore the iroh development roadmap: discover plans for QUIC transport, scalable relays, and production APIs. See active development progress in the n0-computer/iroh repository.

- Tags: development-roadmap
- Published: 2026-06-23

### [How to Build iroh from Source: Complete Guide to Compiling the Rust Networking Stack](/n0-computer/iroh/how-build-iroh-source)

Learn how to build iroh from source with this complete guide. Follow simple steps to compile the Rust networking stack for your project.

- Tags: how-to-guide
- Published: 2026-06-23

### [Limitations of the Current iroh Implementation: Transport, Networking, and API Constraints](/n0-computer/iroh/what-limitations-current-iroh-implementation)

Explore the limitations of the iroh implementation including its QUIC transport, reliance on relays for connectivity, and unstable API features. Learn about current constraints and potential improvements.

- Tags: deep-dive
- Published: 2026-06-23

### [How to Debug iroh Network Connections: A Practical Guide](/n0-computer/iroh/how-debug-issues-iroh-network-connections)

Troubleshoot iroh network connections effectively. Learn to enable tracing logs, monitor socket watchers for NetReport updates, and inspect Prometheus metrics for packet flow and path selection.

- Tags: how-to-guide
- Published: 2026-06-23

### [How iroh Handles NAT Traversal: Hole-Punching and Relay Architecture](/n0-computer/iroh/how-iroh-handle-nat-traversal)

Discover how Iroh tackles NAT traversal with automated UDP QUIC hole punching and a TURN relay fallback. Learn how it simplifies peer-to-peer connections without manual setup.

- Tags: deep-dive
- Published: 2026-06-23

### [What Are the Security Implications of Using Iroh?](/n0-computer/iroh/what-security-implications-using-iroh)

Explore Iroh's security implications. Learn how QUIC and TLS 1.3 ensure confidentiality and authenticity while understanding risks like replay attacks, traffic analysis, and key compromise.

- Tags: security
- Published: 2026-06-23

### [How to Integrate iroh into an Existing Application: A Complete Guide](/n0-computer/iroh/how-integrate-iroh-existing-application)

Integrate iroh into an existing application by building an endpoint with ALPN and relay configurations. Learn how iroh's QUIC stack handles NAT and peer-to-peer connections automatically.

- Tags: how-to-guide
- Published: 2026-06-23

### [Performance Characteristics of iroh: How It Achieves High-Throughput, Low-Latency P2P Transfers](/n0-computer/iroh/what-performance-characteristics-iroh)

Discover iroh's performance: gigabit throughput and sub-10ms latency for P2P transfers. Learn how QUIC, zero-copy, and smart NAT traversal deliver efficient connections.

- Tags: performance
- Published: 2026-06-23

### [How Iroh Manages Data Synchronization: CRDT Replication Over QUIC](/n0-computer/iroh/how-iroh-manage-data-synchronization)

Discover how Iroh handles CRDT replication over QUIC for efficient peer-to-peer data synchronization. Learn about its content-addressed blobs and gossip-based discovery.

- Tags: deep-dive
- Published: 2026-06-23

### [What Is the Store Module in iroh?](/n0-computer/iroh/role-store-module-iroh)

Discover the critical role of the iroh store module, the persistence and caching layer for pkarr. It manages signed packet storage, intelligent caching, and mainline DHT fallback resolution.

- Tags: deep-dive
- Published: 2026-06-23

### [Does iroh Support WebRTC? QUIC-Based Networking Explained](/n0-computer/iroh/does-iroh-support-webrtc)

Discover if iroh supports WebRTC. Learn about iroh's exclusive QUIC-based transport, mandatory TLS, and why it doesn't offer WebRTC data channel APIs for modern networking.

- Tags: deep-dive
- Published: 2026-06-23

### [What Programming Language Is iroh Written In?](/n0-computer/iroh/what-programming-language-iroh-written)

Discover that iroh is written entirely in Rust. Learn how Rust's features enable iroh's high-performance peer-to-peer networking.

- Tags: getting-started
- Published: 2026-06-23

### [How to Use iroh for Peer-to-Peer Communication](/n0-computer/iroh/can-i-use-iroh-peer-to-peer-communication)

Learn how to use iroh for peer-to-peer communication with its Rust library. iroh handles NAT traversal, encryption, and connection multiplexing for simple P2P applications.

- Tags: how-to-guide
- Published: 2026-06-23

### [Key Modules in the iroh Repository: A Complete Architectural Breakdown](/n0-computer/iroh/what-key-modules-iroh-repository)

Explore the key modules in the iroh repository: endpoint, address_lookup, tls, protocol, iroh-relay, and iroh-dns-server. Understand iroh's P2P architecture and discovery mechanisms.

- Tags: architecture
- Published: 2026-06-23

### [What Is the n0-Computer/iroh Protocol? A Deep Dive into QUIC-Based P2P Networking](/n0-computer/iroh/what-is-n0-computer-iroh-protocol)

Discover the n0-computer/iroh protocol, a QUIC-based P2P network stack. It uses public keys for identity, automatic authentication, NAT traversal, and encrypted relays.

- Tags: deep-dive
- Published: 2026-06-23

### [How to Write Integration Tests for iroh Applications with Connection Monitoring](/n0-computer/iroh/write-integration-tests-iroh-applications)

Learn to write integration tests for iroh applications using Rust tokio tests and custom EndpointHooks to monitor QUIC handshakes and connection stats. Improve your iroh app testing today.

- Tags: testing
- Published: 2026-06-22

### [How the Portmapper in Iroh Assists with NAT Traversal: UPnP, PCP, and NAT-PMP Explained](/n0-computer/iroh/how-iroh-portmapper-assists-nat-traversal)

Learn how iroh's portmapper automates NAT traversal using UPnP, PCP, and NAT-PMP. It exposes your internal socket's public address to remote peers for seamless connectivity.

- Tags: deep-dive
- Published: 2026-06-22

### [How to Configure DNS Resolution Settings in the iroh Endpoint Builder](/n0-computer/iroh/configure-dns-resolution-iroh-endpoint-builder)

Configure DNS resolution settings in iroh by calling Builder::dns_resolver() and passing a custom DnsResolver instance. Learn how to use with_nameserver() for seamless setup.

- Tags: how-to-guide
- Published: 2026-06-22

### [How to Use Custom Transports in iroh with the unstable-custom-transports Feature](/n0-computer/iroh/use-custom-transports-iroh-unstable-feature)

Integrate custom transports into iroh's connection stack using the unstable-custom-transports feature. Implement the CustomTransport trait and prioritize paths with PathSelector.

- Tags: how-to-guide
- Published: 2026-06-22

### [How to Configure Custom TLS Settings and Certificate Validation in Iroh](/n0-computer/iroh/configure-custom-tls-settings-iroh)

Learn to configure custom TLS settings and certificate validation in Iroh. Customize cipher suites, crypto providers, and root certificates with CaTlsConfig builder.

- Tags: how-to-guide
- Published: 2026-06-22

### [iroh Metrics and Statistics for Monitoring Endpoint and Connection Health](/n0-computer/iroh/iroh-metrics-monitoring-endpoint-health)

iroh metrics provide detailed insights into endpoint and connection health. Monitor data transfer, connection lifecycles, and more with iroh's comprehensive telemetry system.

- Tags: metrics
- Published: 2026-06-22

### [Iroh Address Lookup Services for Endpoint Discovery: Pkarr, DNS, and Mainline-DHT](/n0-computer/iroh/iroh-address-lookup-services-pkarr-dns)

Discover remote endpoints with Iroh's address lookup services, supporting Pkarr, DNS TXT records, and Mainline-DHT. Find peers efficiently with Iroh.

- Tags: deep-dive
- Published: 2026-06-22

### [How to Manage Connection Closure, Errors, and Graceful Shutdowns in iroh Applications](/n0-computer/iroh/handle-connection-closure-errors-shutdown-iroh)

Master graceful shutdown, connection closure, and error handling in iroh applications. Learn to manage cancellations and task termination for robust system design.

- Tags: how-to-guide
- Published: 2026-06-22

### [How iroh Establishes Direct P2P QUIC Connections Between Endpoints](/n0-computer/iroh/establish-direct-p2p-quic-connections-iroh)

iroh establishes direct P2P QUIC connections with NAT traversal, prioritizing direct paths and falling back to relays when required. Discover how iroh ensures seamless P2P communication.

- Tags: how-to-guide
- Published: 2026-06-22

### [Understanding the Endpoint, SecretKey, and EndpointId Relationship in iroh](/n0-computer/iroh/iroh-endpoint-secretkey-endpointid-relationship)

Uncover the crucial relationship between iroh Endpoint, SecretKey, and EndpointId. Learn how PublicKey derives from SecretKey to create immutable network identities.

- Tags: deep-dive
- Published: 2026-06-22

### [Performance Characteristics of iroh: How the Rust Library Achieves High-Throughput P2P Transfers](/n0-computer/iroh/what-are-the-performance-characteristics-of-iroh)

Discover irohs performance characteristics for high-throughput P2P transfers. Explore its QUIC, async Tokio, zero-copy, and NAT traversal optimizations for gigabit speeds and low latency.

- Tags: performance
- Published: 2026-06-21

### [How Does Iroh Interact with Existing Networks? P2P Overlay on IPv4/IPv6](/n0-computer/iroh/how-does-iroh-interact-with-existing-networks)

Discover how Iroh builds a p2p overlay on existing IP networks. Learn about UDP sockets, lookup services, QUIC streams, and NAT fallback with relay servers.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Debug iroh: Tracing Configuration and Diagnostic Techniques](/n0-computer/iroh/how-to-debug-iroh)

Debug iroh effectively by enabling detailed tracing with RUST_LOG=iroh=debug. Learn techniques for diagnostic logging and troubleshooting connection issues.

- Tags: how-to-guide
- Published: 2026-06-21

### [Limitations of iroh: 8 Critical Constraints for Production Deployments](/n0-computer/iroh/what-are-the-limitations-of-iroh)

Explore the critical limitations of iroh for production deployments. Understand QUIC UDP requirements, NAT traversal dependencies, experimental APIs, and essential configurations for rate limiting and storage.

- Tags: deep-dive
- Published: 2026-06-21

### [How Does iroh Handle Encryption? TLS 1.3 and Raw Public Key Authentication Explained](/n0-computer/iroh/how-does-iroh-handle-encryption)

Discover how iroh handles encryption with TLS 1.3 and raw public key authentication. Learn how Ed25519 keys replace traditional certificates for secure connections.

- Tags: internals
- Published: 2026-06-21

### [What Is the Iroh Daemon? Understanding the Core Network Runtime](/n0-computer/iroh/what-is-the-role-of-the-iroh-daemon)

Discover the iroh daemon, the core network runtime managing persistent QUIC connections, NAT traversal, and relay fallback. Learn how it powers client applications via its local API.

- Tags: getting-started
- Published: 2026-06-21

### [How Iroh Handles Authentication: Cryptographic Peer Identity and Layered Security](/n0-computer/iroh/how-does-iroh-handle-authentication)

Discover how Iroh handles authentication using cryptographic peer identity and layered security. Explore its robust peer-to-peer connection security.

- Tags: deep-dive
- Published: 2026-06-21

### [What Is the iroh API? A Complete Guide to Peer-to-Peer Networking in Rust](/n0-computer/iroh/what-is-the-iroh-api)

Explore the iroh API, a Rust library for peer-to-peer networking. Discover how iroh simplifies QUIC networking with easy-to-use types for endpoints and builders.

- Tags: api-reference
- Published: 2026-06-21

### [How to Test iroh Code: Unit, Integration, and In-Process Relay Testing](/n0-computer/iroh/how-to-test-iroh-code)

Learn to test iroh code effectively. Explore unit, integration, and in-process relay testing strategies for robust development. Run all tests with cargo test --workspace --all-features.

- Tags: how-to-guide
- Published: 2026-06-21

### [What Are the Dependencies of the Iroh Project? A Complete Technical Breakdown](/n0-computer/iroh/what-are-the-dependencies-of-the-iroh-project)

Explore the iroh project's dependencies. Discover key components like tokio, blake3, ed25519-dalek, and internal crates in our technical breakdown.

- Tags: deep-dive
- Published: 2026-06-21

### [How Iroh Manages Peer-to-Peer Connections: Architecture and Implementation](/n0-computer/iroh/how-does-iroh-manage-peer-to-peer-connections)

Discover how Iroh manages peer-to-peer connections with its three-layer architecture. Learn about its Endpoint API, Socket engine, and RemoteStateActor for efficient network optimization and NAT traversal.

- Tags: architecture
- Published: 2026-06-21

### [What is the Architecture of the iroh Node? A Deep Dive into the n0-computer/iroh Stack](/n0-computer/iroh/what-is-the-architecture-of-the-iroh-node)

Explore the iroh node architecture, a powerful Rust stack enabling P2P QUIC endpoints with NAT traversal, relay fallback, and DNS resolution. Understand the n0-computer/iroh components for seamless connectivity.

- Tags: architecture
- Published: 2026-06-21

### [Build Requirements for iroh: A Complete Guide to Compiling from Source](/n0-computer/iroh/what-are-the-build-requirements-for-iroh)

Learn the essential build requirements for iroh. Discover the necessary Rust version, C compiler, pkg-config, and optional dependencies to compile iroh from source.

- Tags: how-to-guide
- Published: 2026-06-21

### [Networking Protocols Used by iroh: QUIC, Relay, and Tor Explained](/n0-computer/iroh/what-are-the-networking-protocols-used-by-iroh)

Discover the networking protocols iroh uses: QUIC, relay, and Tor. Learn how iroh ensures efficient, reliable, and anonymous P2P communication.

- Tags: deep-dive
- Published: 2026-06-21

### [What Are the Core Components of iroh? A Technical Architecture Guide](/n0-computer/iroh/what-are-the-core-components-of-iroh)

Explore the core components of iroh, including its endpoint, cryptographic identity, discovery services, and relay infrastructure. Understand the technical architecture of this peer-to-peer networking project.

- Tags: architecture
- Published: 2026-06-21

### [How to Set Up iroh for Development: Complete Rust Workspace Guide](/n0-computer/iroh/how-to-set-up-iroh-for-development)

Easily set up iroh for development. Follow our guide to clone the repository, install dependencies, and build the Rust workspace for seamless development.

- Tags: getting-started
- Published: 2026-06-21

### [What is n0-computer/iroh? A Peer-to-Peer QUIC Networking Library in Rust](/n0-computer/iroh/what-is-n0-computer-iroh)

Discover n0-computer/iroh a Rust library for secure peer-to-peer QUIC networking. Explore its NAT traversal relay fallback and DNS discovery features for robust connections.

- Tags: getting-started
- Published: 2026-06-21

### [How to Gracefully Shut Down an iroh Endpoint and Router](/n0-computer/iroh/gracefully-shutting-down-iroh-endpoint-and-router)

Learn how to gracefully shut down your iroh Endpoint and Router by closing the QUIC connection and releasing resources. This guide ensures a clean shutdown for reliable applications.

- Tags: how-to-guide
- Published: 2026-06-21

### [How to Implement a Custom Address Filter in iroh](/n0-computer/iroh/how-to-implement-a-custom-address-filter-in-iroh)

Learn to implement a custom address filter in iroh by creating an AddrFilter with a closure and attaching it during endpoint construction or at runtime. Enhance your network control.

- Tags: how-to-guide
- Published: 2026-06-21

### [Monitoring iroh Connection Metrics and Stats: Real-Time Network Observability](/n0-computer/iroh/monitoring-iroh-connection-metrics-and-stats)

Monitor iroh connection metrics and stats with its built-in system. Get real-time network observability for traffic, paths, and lifecycles via the Endpoint::metrics() API. No external dependencies needed.

- Tags: how-to-guide
- Published: 2026-06-21

### [How Does Iroh Handle NAT Traversal: Hole-Punching, Relay Fallback, and the RemoteState Machine](/n0-computer/iroh/how-does-iroh-handle-nat-traversal)

Discover how Iroh achieves NAT traversal through hole-punching and relay fallback. Learn about the RemoteState actor enabling direct peer-to-peer connections.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Configure the iroh Crypto Provider: ring vs aws‑lc‑rs](/n0-computer/iroh/how-to-configure-iroh-crypto-provider-ring-vs-aws-lc-rs)

Configure iroh crypto provider: choose between ring and aws-lc-rs features or inject manually. Learn how to set up your iroh crypto provider for optimal performance.

- Tags: how-to-guide
- Published: 2026-06-21

### [Iroh Connection Lifecycle: From Endpoint Creation to QUIC Handshake Completion](/n0-computer/iroh/what-is-the-iroh-connection-lifecycle)

Explore the iroh connection lifecycle from endpoint creation to QUIC handshake completion. Understand the Rust types guiding QUIC handshake stages.

- Tags: deep-dive
- Published: 2026-06-21

### [Handling iroh Connection Errors and Timeouts: Relay Actor Resilience Patterns](/n0-computer/iroh/handling-iroh-connection-errors-and-timeouts)

Learn how Iroh handles connection errors and timeouts using its relay actor. Discover retry logic for dialing, handshake, and established connections.

- Tags: how-to-guide
- Published: 2026-06-21

### [How pkarr Publishing Works with iroh: Signed Packets to DNS Resolution](/n0-computer/iroh/how-does-pkarr-publishing-work-with-iroh)

Discover how pkarr publishing uses iroh for signed DNS packets via HTTP PUT to a DNS server, enabling efficient resolution with caching and DHT fallback.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Use MemoryLookup for Peer Address Management in iroh](/n0-computer/iroh/how-to-use-memorylookup-for-peer-address-management-in-iroh)

Learn to use MemoryLookup for peer address management in iroh. Easily populate and inject in-memory stores for thread-safe endpoint resolution of peer connection details.

- Tags: how-to-guide
- Published: 2026-06-21

### [What is ALPN in iroh Connections? Protocol Negotiation Explained](/n0-computer/iroh/what-is-alpn-in-iroh-connections)

Understand ALPN in iroh connections. This TLS extension lets iroh peers negotiate application protocols like /iroh/echo/1 over QUIC for efficient traffic routing.

- Tags: deep-dive
- Published: 2026-06-21

### [How iroh Path Selection Works: Inside the Biased RTT Algorithm](/n0-computer/iroh/how-does-iroh-path-selection-work)

Discover how iroh path selection uses BiasedRttPathSelector to prioritize direct connections over relays, ranking by latency and favoring IPv6 for optimal performance.

- Tags: deep-dive
- Published: 2026-06-21

### [Configuring Custom Transport Layers in iroh with unstable-custom-transports](/n0-computer/iroh/configuring-custom-transport-layers-in-iroh-with-unstable-custom-transports)

Learn to configure custom transport layers in iroh using the unstable-custom-transports feature. Implement pluggable networking for Bluetooth, Tor, and more with our guide.

- Tags: how-to-guide
- Published: 2026-06-21

### [How iroh Implements End-to-End Encryption Without Certificates](/n0-computer/iroh/how-does-iroh-handle-end-to-end-encryption-without-certificates)

Discover how Iroh implements end-to-end encryption without certificates using raw public keys and embedded Ed25519 identity for secure communication. Learn more.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Add Custom Connection Hooks in Iroh for Authentication](/n0-computer/iroh/how-to-add-custom-connection-hooks-in-iroh-for-authentication)

Add custom authentication to Iroh connections by implementing EndpointHooks. Inspect and reject connections during connection phases for enhanced security. Learn how to integrate custom connection hooks.

- Tags: how-to-guide
- Published: 2026-06-21

### [Using Uni-Directional QUIC Streams in iroh: One-Way Communication Patterns](/n0-computer/iroh/using-uni-directional-quic-streams-in-iroh)

Learn how to use uni-directional QUIC streams in iroh for efficient fire-and-forget or request-only messaging. Simplify your one-way communication patterns.

- Tags: deep-dive
- Published: 2026-06-21

### [Using Bi-Directional QUIC Streams in iroh: Implementation Guide](/n0-computer/iroh/using-bi-directional-quic-streams-in-iroh)

Learn how to implement bi-directional QUIC streams in iroh for full-duplex communication. Access SendStream and RecvStream using Connection::open_bi and Connection::accept_bi.

- Tags: how-to-guide
- Published: 2026-06-21

### [How to Implement Custom Protocol Handlers in iroh: A Complete Guide](/n0-computer/iroh/how-to-implement-custom-protocol-handlers-in-iroh)

Learn to implement custom protocol handlers in iroh. This guide shows you how to create a handler, register it with ALPN, and dispatch QUIC connections for your custom protocol.

- Tags: how-to-guide
- Published: 2026-06-21

### [Understanding iroh Presets: N0, N0DisableRelay, Minimal, and Empty](/n0-computer/iroh/what-are-the-iroh-presets-n0-n0disablerelay-minimal-empty)

Explore iroh presets like N0, N0DisableRelay, Minimal, and Empty. Customize your iroh endpoint configuration with sensible defaults for your networking needs.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Configure iroh Relay Servers Using RelayMode](/n0-computer/iroh/how-to-configure-iroh-relay-servers-using-relaymode)

Configure iroh relay servers with RelayMode by selecting Default, Staging, Custom, or Disabled. Control NAT traversal when direct QUIC paths fail. Learn how in this guide.

- Tags: how-to-guide
- Published: 2026-06-21

### [iroh SecretKey, PublicKey, and EndpointId: Understanding the Relationship](/n0-computer/iroh/what-is-the-relationship-between-iroh-secretkey-publickey-and-endpointid)

Understand the n0-computer iroh SecretKey, PublicKey, and EndpointId relationship. Learn how EndpointId is derived from SecretKey, forming a direct identity chain for your node.

- Tags: deep-dive
- Published: 2026-06-21

### [Iroh Hole Punching for Direct Connections: How NAT Traversal Works in n0-computer/iroh](/n0-computer/iroh/what-is-iroh-hole-punching-for-direct-connections)

Learn how Iroh hole punching upgrades relay connections to direct end-to-end encrypted paths. Discover NAT traversal and UDP path establishment for n0-computer/iroh.

- Tags: deep-dive
- Published: 2026-06-21

### [How Iroh Uses QUIC for Peer-to-Peer Connections: Direct Paths Through NATs](/n0-computer/iroh/how-does-iroh-use-quic-for-peer-to-peer-connections)

Learn how Iroh uses QUIC for peer-to-peer connections. Discover direct paths through NATs enabled by relay-assisted discovery and public-key authentication.

- Tags: deep-dive
- Published: 2026-06-21

### [How to Publish and Resolve Addresses Using PkarrPublisher and DnsAddressLookup in iroh](/n0-computer/iroh/how-to-publish-and-resolve-addresses-with-pkarrpublisher-dnsaddresslookup)

Learn to publish and resolve addresses with iroh's PkarrPublisher and DnsAddressLookup. Sign, PUT data to a relay, and query DNS TXT records for secure endpoint information.

- Tags: how-to-guide
- Published: 2026-06-19

### [Performance Tradeoffs Between Relay and Direct Connections in iroh](/n0-computer/iroh/performance-tradeoffs-between-relay-and-direct-connections)

Explore performance tradeoffs between iroh relay and direct connections. Understand latency, bandwidth, and connectivity implications to choose the best option for your needs.

- Tags: performance
- Published: 2026-06-19

### [How Iroh's Connection State Machine Manages the Connection Lifecycle](/n0-computer/iroh/how-irohs-connection-state-machine-handles-lifecycle)

Learn how iroh's connection state machine manages the connection lifecycle through distinct phases. Prevent invalid operations with this compile-time type-state pattern.

- Tags: internals
- Published: 2026-06-19

### [How to Integrate iroh with Custom Transport Layers (Unstable Feature)](/n0-computer/iroh/how-to-integrate-iroh-with-custom-transport-layers)

Integrate iroh with custom transport layers by implementing traits, registering, and configuring PathSelector. Unstable feature, requires enabling the unstable-custom-transports flag.

- Tags: how-to-guide
- Published: 2026-06-19

### [Understanding the Role of SecretKey in Iroh Endpoint Authentication](/n0-computer/iroh/role-of-secretkey-in-irohs-endpoint-authentication)

Discover how iroh SecretKey is the core credential for endpoint authentication, deriving the public EndpointId for secure TLS handshakes and peer-to-peer connections.

- Tags: deep-dive
- Published: 2026-06-19

### [How Iroh Handles Network Changes and Path Selection: A Deep Dive into RemoteStateActor](/n0-computer/iroh/how-iroh-handle-network-changes-and-path-selection)

Discover how Iroh expertly manages network changes and path selection using RemoteStateActor. Learn about its efficient loss detection, hole-punching, and optimal path selection methods.

- Tags: deep-dive
- Published: 2026-06-19

### [How to Implement Unreliable Datagram Connections in iroh](/n0-computer/iroh/how-to-implement-unreliable-datagram-connections-in-iroh)

Learn to implement unreliable datagram connections in iroh using Connection read_datagram and send_datagram. Exchange small unordered packets efficiently over QUIC.

- Tags: how-to-guide
- Published: 2026-06-19

### [Security Implications of Relay Servers in iroh: Authentication, TLS, and Trust Boundaries](/n0-computer/iroh/security-implications-of-relay-servers-in-iroh)

Discover the security implications of iroh relay servers. Explore access control, metadata exposure, and transport layer hardening in this crucial iroh component.

- Tags: security
- Published: 2026-06-19

### [How to Handle Connection Close and Graceful Shutdown in iroh](/n0-computer/iroh/how-to-handle-connection-close-and-graceful-shutdown-in-iroh)

Learn the secrets of graceful shutdown in iroh. Discover how to properly close connections and shut down tasks with router shutdown for a seamless exit.

- Tags: how-to-guide
- Published: 2026-06-19

### [How Iroh Uses EndpointId as a TLS Identity for Mutual Authentication](/n0-computer/iroh/how-iroh-uses-endpointid-as-tls-identity)

Discover how Iroh leverages EndpointId as a TLS identity for certificate-less mutual authentication over QUIC. Learn about SNI and RPK in this technical deep dive.

- Tags: how-to-guide
- Published: 2026-06-19

### [How to Establish Direct Peer-to-Peer Connections Without Relay Servers in Iroh](/n0-computer/iroh/how-to-establish-direct-p2p-connections-without-relays)

Learn how to establish direct peer to peer connections in Iroh by disabling relay servers. Force UDP hole punching and bypass fallback for faster, more efficient P2P.

- Tags: how-to-guide
- Published: 2026-06-19

### [How iroh Endpoint Binding Works and Which BindOpts Are Available](/n0-computer/iroh/how-endpoint-binding-works-and-bindopts-available)

Learn how iroh endpoint binding works via a builder pattern processing BindOpts and TransportConfig. Discover subnet routing, default routes, and failure handling options.

- Tags: deep-dive
- Published: 2026-06-19

### [How to Debug Connection Issues Using Qlog Tracing in iroh](/n0-computer/iroh/how-to-debug-connection-issues-with-qlog-tracing-in-iroh)

Debug iroh connection issues with qlog tracing. Enable the qlog feature, set QLOGDIR, and generate per-connection JSON traces with QlogFileGroup for detailed analysis.

- Tags: how-to-guide
- Published: 2026-06-19

### [How iroh Leverages QUIC to Support Multiple Concurrent Streams: A Deep Dive into the Rust Implementation](/n0-computer/iroh/how-iroh-leverages-quic-for-concurrent-streams)

Discover how iroh uses native QUIC stream multiplexing via the noq crate and high concurrency settings for parallel discovery and data transfer on a single UDP connection.

- Tags: deep-dive
- Published: 2026-06-19

### [N0 vs Minimal vs Empty Endpoint Presets in Iroh: A Complete Guide](/n0-computer/iroh/difference-between-n0-minimal-empty-endpoint-presets)

Understand Iroh's N0, Minimal, and Empty endpoint presets. Learn how each configuration level differs from a blank slate to full production defaults for your P2P applications.

- Tags: deep-dive
- Published: 2026-06-19

### [How to Implement before-connect and after-handshake Hooks in iroh](/n0-computer/iroh/how-to-implement-before-connect-and-after-handshake-hooks-in-iroh)

Master iroh connection lifecycle events by implementing before_connect and after_handshake hooks. Intercept and inspect connections efficiently with the EndpointHooks trait.

- Tags: how-to-guide
- Published: 2026-06-19

### [How to Monitor Connection Events and Path Changes Using iroh's Hooks System](/n0-computer/iroh/how-to-monitor-connection-events-and-path-changes-with-iroh-hooks)

Learn how to monitor connection events and path changes with irohs hooks system. Implement the EndpointHooks trait to intercept lifecycle events and metrics during endpoint construction.

- Tags: how-to-guide
- Published: 2026-06-19

### [How Iroh Handles Connection Failures and Automatically Falls Back to Relays](/n0-computer/iroh/how-iroh-handle-connection-failures-and-fall-back-to-relays)

Learn how Iroh handles connection failures using dual transport layers. Discover its automatic failover to relays, ensuring your application stays connected seamlessly.

- Tags: deep-dive
- Published: 2026-06-19

### [How to Configure Custom TLS Crypto Providers (ring vs aws-lc-rs) in iroh](/n0-computer/iroh/how-to-configure-custom-tls-crypto-providers-in-iroh)

Learn to configure custom TLS crypto providers ring or aws-lc-rs in iroh. Easily switch between backends via Cargo.toml or runtime configuration for enhanced security and performance.

- Tags: tutorial
- Published: 2026-06-19

### [How to Use the iroh Router to Multiplex Multiple Protocols on a Single Endpoint](/n0-computer/iroh/how-to-use-router-to-multiplex-multiple-protocols-on-single-endpoint)

Learn how to use the iroh Router to multiplex multiple protocols on one endpoint. Register handlers by ALPN and let the router automatically direct connections for efficient network management.

- Tags: how-to-guide
- Published: 2026-06-19

### [How iroh's DNS/Pkarr Address Lookup Service Resolves Endpoints: A Deep Dive into the Resolution Pipeline](/n0-computer/iroh/how-iroh-dns-pkarr-address-lookup-service-resolve-endpoints)

Discover how irohs DNSPkarr address lookup service resolves endpoints by querying TXT records, verifying signatures, and parsing DNS data for structured connection info.

- Tags: deep-dive
- Published: 2026-06-19

### [How to Configure Relay Servers vs. Direct Connections in iroh](/n0-computer/iroh/how-to-configure-relay-servers-versus-direct-connections-in-iroh)

Configure relay servers or direct connections in iroh. Learn to manage relay modes and force direct IP transports for optimal performance.

- Tags: how-to-guide
- Published: 2026-06-19

### [How to Implement Custom Protocol Handlers Using ALPN in iroh](/n0-computer/iroh/how-to-implement-custom-protocol-handlers-using-alpn-in-iroh)

Learn to implement custom protocol handlers in iroh using ALPN. Register byte-string ALPN identifiers with RouterBuilder to map QUIC connections to ProtocolHandler implementations.

- Tags: how-to-guide
- Published: 2026-06-19

### [How Iroh Performs NAT Traversal and Hole-Punching Internally](/n0-computer/iroh/how-irohs-nat-traversal-and-hole-punching-work-internally)

Discover how Iroh achieves NAT traversal and hole-punching internally. Learn about direct P2P connections, external address discovery, and fallback relay mechanisms.

- Tags: internals
- Published: 2026-06-19

### [Optimizing iroh Connection Performance with Path Selection Strategies](/n0-computer/iroh/optimizing-iroh-connection-performance-with-path-selection-strategies)

Boost iroh connection performance with path selection strategies. Discover how transport tiers, RTT biases, and hysteresis thresholds optimize routes for faster direct IP connections.

- Tags: performance
- Published: 2026-06-18

### [Debugging Connection Issues with iroh's Structured Events and Logging](/n0-computer/iroh/debugging-connection-issues-with-irohs-structured-events-and-logging)

Debug iroh connection issues using structured events and logging. Filter logs for path state changes, relay connections, and link events with the tracing crate.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Handle Connection Timeouts and Retry Logic in iroh](/n0-computer/iroh/how-to-handle-connection-timeouts-and-retry-logic-in-iroh)

Master iroh's robust timeout and retry strategy. Learn how it handles connection issues with multi-layered guards, exponential backoff, and configurable DNS retries for reliable networking.

- Tags: how-to-guide
- Published: 2026-06-18

### [Implementing Bi-Directional and Uni-Directional Streams in Iroh](/n0-computer/iroh/implementing-bi-directional-and-uni-directional-streams-in-iroh)

Implement bi-directional and uni-directional streams in Iroh by wrapping transport protocols. Unlock full-duplex channels or constrained read-only write-only pipes.

- Tags: how-to-guide
- Published: 2026-06-18

### [Understanding iroh's EndpointId and SecretKey Identity System: A Complete Guide](/n0-computer/iroh/understanding-irohs-endpointid-and-secretkey-identity-system)

Master iroh's EndpointId and SecretKey identity system. Learn how Ed25519 key pairs provide self-authentication without central authorities. Dive into this complete guide.

- Tags: deep-dive
- Published: 2026-06-18

### [How to Monitor Connection Lifecycle with iroh's Connection State Events](/n0-computer/iroh/how-to-monitor-connection-lifecycle-with-irohs-connection-state-events)

Monitor iroh connection lifecycle easily. Subscribe to connection state events with HomeRelayWatch to track Connecting, Connected, and Disconnected states for seamless relay management.

- Tags: how-to-guide
- Published: 2026-06-18

### [Configuring TLS and Key Exchange in iroh Connections](/n0-computer/iroh/configuring-tls-and-key-exchange-in-iroh-connections)

Learn to configure TLS and key exchange in iroh connections using rustls. Customize crypto providers and explore post-quantum options for secure peer-to-peer and external service communication. Maximize security with iroh.

- Tags: how-to-guide
- Published: 2026-06-18

### [Implementing Protocol Routing with Router and ProtocolHandler in iroh](/n0-computer/iroh/implementing-protocol-routing-with-router-and-protocolhandler-in-iroh)

Learn to implement protocol routing in iroh using Router and ProtocolHandler for extensible peer-to-peer networking. Multiplex QUIC connections with ALPN identifiers.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Configure Custom Transports in iroh for Specialized Network Paths](/n0-computer/iroh/how-to-configure-custom-transports-in-iroh-for-specialized-network-paths)

Learn to configure custom transports in iroh for specialized network paths like Bluetooth or LoRa. Implement traits and control path selection for enhanced connectivity.

- Tags: how-to-guide
- Published: 2026-06-18

### [Understanding iroh's Path Selection and RelayOnly Mode for Network Debugging](/n0-computer/iroh/understanding-irohs-path-selection-and-relayonly-mode-for-network-debugging)

Debug iroh networks with Path Selection and RelayOnly mode. Learn how a custom proxy selector forces traffic through the relay for easier protocol analysis.

- Tags: deep-dive
- Published: 2026-06-18

### [How to Implement Custom Connection Filtering Using EndpointHooks in iroh](/n0-computer/iroh/how-to-implement-custom-connection-filtering-using-endpoint-hooks-in-iroh)

Learn to implement custom connection filtering in iroh using EndpointHooks. Intercept connections before or after TLS handshake with this guide. Enhance your iroh endpoint capabilities today.

- Tags: how-to-guide
- Published: 2026-06-18

### [How iroh Connection Establishment Works: Direct QUIC and Relay Server Fallback](/n0-computer/iroh/how-does-irohs-connection-establishment-work-with-relay-servers-and-direct-connections)

Explore how iroh establishes connections using direct QUIC and automatically falls back to relay servers when NAT traversal fails. Simplify your networking.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Configure Custom TLS Verifiers in Iroh Transport Configuration](/n0-computer/iroh/how-can-i-configure-custom-tls-verifiers-in-iroh-transport-configuration)

Configure custom TLS verifiers in Iroh transport with rustls ClientConfig and CaTlsConfig. Secure your connections by implementing specific certificate verification requirements for advanced root certificate management.

- Tags: how-to-guide
- Published: 2026-06-18

### [Core Socket Management and Path Selection Logic in Iroh: Implementation Guide](/n0-computer/iroh/where-can-i-find-the-core-socket-management-and-path-selection-logic-in-iroh)

Discover the core socket management and path selection logic in Iroh. Explore iroh/src/socket.rs code and understand transport path decisions with BiasedRttPathSelector.

- Tags: implementation-guide
- Published: 2026-06-18

### [What is the EndpointId in Iroh? Understanding Peer Identity in the Network](/n0-computer/iroh/what-is-the-endpointid-in-iroh)

Discover the EndpointId in Iroh, the unique cryptographic identifier for peer identity. Learn how it enables authentication, routing, and TLS verification on the p2p network.

- Tags: deep-dive
- Published: 2026-06-18

### [How to Open a Bidirectional Stream on an Iroh Connection](/n0-computer/iroh/how-can-i-open-a-bidirectional-stream-on-an-iroh-connection)

Learn how to open a bidirectional stream on an Iroh connection using Connection::open_bi. This enables simultaneous two-way data transfer for efficient communication.

- Tags: how-to-guide
- Published: 2026-06-18

### [Default Relay Configurations for Iroh: Ports, Maps, and Client Settings](/n0-computer/iroh/what-are-the-default-relay-configurations-for-iroh)

Discover Iroh's default relay configurations, including the QUIC port 7842, global production relays, and staging endpoints. Learn essential client settings for seamless operation.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Enable Custom Transport Protocols in Iroh with the `unstable-custom-transports` Feature](/n0-computer/iroh/how-can-i-enable-custom-transport-protocols-in-iroh-with-the-unstable-custom-transports-feature)

Learn to enable custom transport protocols in Iroh by activating the unstable-custom-transports feature. Implement essential traits and register your transport for enhanced networking capabilities.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Implement Custom Authentication Logic Using Iroh's Connection Hooks](/n0-computer/iroh/how-can-i-implement-custom-authentication-logic-using-irohs-connection-hooks)

Implement custom authentication logic in Iroh using connection hooks. Inspect and reject connections during before connect and after handshake phases with EndpointHooks. Learn more.

- Tags: how-to-guide
- Published: 2026-06-18

### [How to Use Post-Quantum Key Exchange with Iroh](/n0-computer/iroh/how-do-i-use-post-quantum-key-exchange-with-iroh)

Learn how to enable post-quantum key exchange in Iroh. Build the tls-aws-lc-rs feature and configure the aws-lc-rs provider for X25519MLKEM768. Secure your connections today.

- Tags: how-to-guide
- Published: 2026-06-18

### [How Iroh Handles Authentication Without Traditional Certificates: Raw Public Key TLS](/n0-computer/iroh/how-does-iroh-handle-authentication-without-traditional-certificates)

Discover how Iroh handles authentication with raw public key TLS, bypassing traditional certificates. Learn about its RFC 7250 implementation binding Ed25519 identity directly to TLS.

- Tags: deep-dive
- Published: 2026-06-18

### [How to Configure Custom TLS Settings in Iroh: A Complete Guide to rustls Integration](/n0-computer/iroh/how-can-i-configure-custom-tls-settings-in-iroh)

Learn to configure custom TLS settings in Iroh using rustls. Gain precise control over cryptographic providers, cipher suites, and root certificate verification with this complete guide.

- Tags: how-to-guide
- Published: 2026-06-18

### [How Iroh Automatically Migrates Connections to Faster Paths](/n0-computer/iroh/how-does-iroh-automatically-migrate-connections-to-faster-paths)

Iroh automatically finds and migrates your connections to faster direct peer-to-peer paths using NAT traversal and QUIC Address Discovery without application intervention.

- Tags: how-to-guide
- Published: 2026-06-18

### [What Happens If Hole-Punching Fails in Iroh: Path State Management and Relay Fallback](/n0-computer/iroh/what-happens-if-hole-punching-fails-in-iroh)

Discover what happens when hole-punching fails in Iroh. Learn about path state management, relay fallback, and exponential back-off for robust connection handling in the n0-computer/iroh repository.

- Tags: deep-dive
- Published: 2026-06-18

### [How Iroh's Hole-Punching Mechanism Works for NAT Traversal](/n0-computer/iroh/how-does-irohs-hole-punching-mechanism-work-for-nat-traversal)

Discover how Iroh bypasses NAT using a smart three-phase hole-punching process. Learn about port mapping, candidate exchange, and orchestrated UDP attempts for seamless peer connections.

- Tags: deep-dive
- Published: 2026-06-18

### [The Role of the Home Relay Server in Iroh Connection Establishment](/n0-computer/iroh/what-is-the-role-of-the-home-relay-server-in-irohs-connection-establishment)

Discover the role of the home relay server in Iroh connection establishment. Learn how it bootstraps P2P connections, maintains reachability, and provides a fallback data path.

- Tags: deep-dive
- Published: 2026-06-18

### [How Iroh Establishes Direct Peer-to-Peer Connections Using QUIC: A Complete Technical Breakdown](/n0-computer/iroh/how-does-iroh-establish-direct-peer-to-peer-connections-using-quic)

Discover how Iroh uses QUIC for direct P2P connections via relay-assisted discovery, NAT hole-punching, and public-key auth. Explore the technical breakdown.

- Tags: deep-dive
- Published: 2026-06-18

