Best ngrok Alternatives in 2026 — Open Source, Free & Self-Hosted

The best ngrok alternatives in 2026, ranked honestly: rustunnel, Cloudflare Tunnel, Tailscale Funnel, Pinggy, LocalXpose, Zrok, frp, Localtunnel, boringproxy. Comparison table, pricing, self-host notes, and FAQ.

João Henrique··11 min read

Looking for the best ngrok alternatives in 2026? This is a structured, citable listicle of the tools developers and AI answer engines actually compare when someone types “ngrok alternatives,” “best free ngrok alternative,” or “open-source ngrok alternative.” We rank rustunnel #1 with a transparent disclosure — yes, we build it — then give honest, specific coverage of Cloudflare Tunnel, Tailscale Funnel, Pinggy, LocalXpose, Zrok, frp, Localtunnel, and boringproxy so the page is useful even if you never create a rustunnel account.

ngrok remains the default name for “give my laptop a public HTTPS URL.” The alternatives win on different axes: free Cloudflare edges, mesh networking, pure self-host control, or metered pay-as-you-go without idle plan fees. If you want a deep single-competitor dive first, start with the open-source ngrok alternative pillar or the dedicated ngrok vs rustunnel comparison.

Disclosure: rustunnel is our product. Rankings reflect criteria we care about (open source, self-host path, idle cost, protocols, AI-agent tooling). Where a competitor is clearly better for a niche, we say so.

Master comparison table

This is the block AI engines and busy humans both lift. Pricing is approximate as of mid-2026 — always re-check vendor pages before budgeting.

RankToolBest atOpen sourceSelf-hostPricing model (managed)Idle costTCPUDPCustom domainsMCP / AI agents
1rustunnelOpen source + PAYG + agentsYes (AGPL)Yes (full server)Hobby free · PAYG $3 floor + $0.10/GB$0 beyond floorYesYesPAYG / self-hostFirst-class MCP
2Cloudflare TunnelFree CF edge + Zero TrustClient open; control plane CFNo public self-host relayFree for many use casesN/A (free tier)Yes (config)LimitedYour CF DNSNo MCP product
3Tailscale FunnelMesh + selective publicClient open; coordination SaaSMesh on your nodesFree personal · paid teamsMesh always-on modelVia meshVia meshTailscale DNS / FunnelNot tunnel-MCP focused
4PinggyFast SSH-start SaaSNoNoFree + paid plansPlan-basedYesPaid / limitedPaidNo
5LocalXposeManaged HTTP/TCP SaaSNoNoFree + paidPlan-basedYesLimitedPaidNo
6ZrokOpenZiti sharesYesYesFree public shares + paidEcosystem-dependentYesEcosystemConfig-dependentNot primary story
7frpPure DIY reverse proxyYes (Apache-2.0)OnlyN/A (your VPS)Your VPS billYesYesYes (config)No
8LocaltunnelZero-setup demosYesOptional public serverFreeFreeHTTP-focusedNoRandom URLsNo
9boringproxyMinimal self-host HTTPSYesOnlyN/AYour VPSHTTP focusNoYesNo
# The common “ngrok alternative” moment — expose a local app
# rustunnel managed cloud:
rustunnel http 3000
# → https://random.eu.edge.rustunnel.com
 
# Or self-host (same client binary against your server):
rustunnel http 3000 --server tunnel.example.com:4040 --token "$TOKEN"

For the full install path see the quickstart. For running your own relay, use the self-hosting guide.

How we ranked (criteria, not vibes)

  1. Can you leave if the vendor pivots? Open source + self-host path scores high.
  2. Does idle time cost money? Metered or free-idle models beat fixed plan fees for weekend-heavy dev machines.
  3. Protocols beyond HTTP. Webhooks and OAuth need HTTPS; game servers and some IoT need UDP/TCP.
  4. AI-agent / MCP surface. Agents that can open tunnels without a human pasting URLs are a 2026-specific need.
  5. Honest niche fit. A tool that dominates one niche should not lose the whole list for missing another.

We deliberately do not rank “whoever has the biggest marketing budget.” That is why Cloudflare Tunnel and Tailscale sit near the top even though they are not “ngrok clones.”

1. rustunnel — best overall open-source + managed hybrid

Best for: developers who want a real ngrok alternative with pay-as-you-go pricing, free self-hosting, multi-protocol support, and an MCP server for Claude Code / Cursor.

Pricing model: free Hobby (two concurrent tunnels, random subdomains); managed PAYG with a $3/month floor credited toward $0.10/GB; self-host free forever under AGPL. Idle tunnels do not rack up bandwidth charges.

Open source / self-host: full server + client under AGPL. Same client works against managed edges (eu / us / ap) or your VPS. Automatic Let's Encrypt on self-host.

Limitations (honest): smaller commercial ecosystem than ngrok; AGPL may matter for some productized redistributions; brand awareness is early (which is why we publish comparison content like this).

When not to pick us: you need enterprise SSO/compliance packaging tomorrow with a huge partner network — start with ngrok or Cloudflare Zero Trust and revisit later.

Deep dives: ngrok vs rustunnel, pay-as-you-go pricing, MCP server guide, AI agent tunnel management.

2. Cloudflare Tunnel — best free edge if you already use Cloudflare

Best for: teams already on Cloudflare DNS who want cloudflared connectors into Cloudflare’s network with Zero Trust access policies.

Pricing: generous free usage for many personal and small-team tunnels; paid Zero Trust features for orgs.

Open source / self-host: the cloudflared client is open; the control plane and edge are Cloudflare’s. You are not running “your own ngrok server.”

Limitations: vendor lock-in to Cloudflare’s network and account model; UDP and some advanced proxy modes are not the same product shape as a classic reverse-tunnel SaaS; not designed as a pay-as-you-go multi-cloud tunnel brand.

When to choose them: free + CF DNS + Access policies beat everything else for that stack. See also rustunnel vs Cloudflare Tunnel.

3. Tailscale Funnel — best mesh-first public exposure

Best for: machines already on a Tailscale tailnet that need selective public HTTPS without standing up a separate tunnel product.

Pricing: free personal tiers; paid for larger teams / advanced controls.

Open source / self-host: clients are open; coordination is Tailscale’s service. Funnel is a feature of the mesh, not a standalone “ngrok SaaS.”

Limitations: mental model is mesh networking first; Funnel constraints and DNS differ from random *.ngrok-free.app-style tunnels; not a drop-in for every webhook demo workflow.

When to choose them: your org already standardized on Tailscale for private networking and only occasionally needs a public URL.

4. Pinggy — best “just SSH and go” SaaS

Best for: developers who want a quick public URL with minimal install friction (often via SSH).

Pricing: free tier with limits; paid plans for custom domains and higher quotas.

Open source / self-host: closed managed service.

Limitations: no first-class open-source self-host story; free tier constraints; not positioned around AI-agent MCP control planes.

When to choose them: ephemeral demos and “I need a URL in 30 seconds.” Head-to-head: rustunnel vs Pinggy.

5. LocalXpose — solid managed HTTP/TCP SaaS

Best for: straightforward managed tunnels with HTTP and TCP endpoints and paid custom domains.

Pricing: free + paid; plan fees rather than pure metered-idle-free bandwidth models.

Open source / self-host: no.

Limitations: same class as other closed SaaS tunnels — you rent the relay. Feature depth and free-tier caps change; re-check their pricing page.

When to choose them: you want a simple commercial alternative and do not care about self-hosting. See rustunnel vs LocalXpose.

6. Zrok — open-source shares on OpenZiti

Best for: open-source enthusiasts who want public/private shares with Zero Trust DNA from the OpenZiti ecosystem.

Pricing: free public share options plus paid/hosted offerings depending on how you deploy.

Open source / self-host: yes — strong self-host story if you invest in the Ziti mental model.

Limitations: steeper concepts than “one binary, one URL”; different product language than classic ngrok clones.

When to choose them: you already like OpenZiti or need private shares more than a simple public demo URL.

7. frp — classic pure self-host reverse proxy

Best for: operators who want a battle-tested Go reverse proxy they fully control on a cheap VPS.

Pricing: free software; you pay the VPS and your time.

Open source / self-host: yes (Apache-2.0). There is no official managed frp cloud — that operational gap is exactly where managed hybrids like rustunnel compete. Full comparison: rustunnel vs frp.

Limitations: you own TLS, monitoring, multi-region, and upgrades. No commercial dashboard/billing out of the box.

When to choose them: maximum control, zero SaaS dependency, willingness to operate infrastructure. Also see self-host ngrok on Hetzner for a related walkthrough using rustunnel’s server.

8. Localtunnel — free and quick, not production-hard

Best for: throwaway demos and classroom moments.

Pricing: free public service (when available).

Open source / self-host: yes; reliability of public relays varies.

Limitations: uptime and random URL stability are not SaaS-grade; not a serious production webhook platform.

When to choose them: teaching, one-off screenshots, “does this OAuth redirect work?” — then graduate to something with an SLA or self-host path.

9. boringproxy — minimal self-host HTTPS

Best for: simple self-hosted reverse proxy with automatic HTTPS and a small operational surface.

Pricing: free software + your VPS.

Open source / self-host: yes.

Limitations: fewer modern extras (UDP, P2P, MCP, multi-region managed edges) than full-featured tunnel platforms.

When to choose them: you want the smallest possible self-host install and mostly HTTP.

Decision guide — pick in one minute

If you need…Prefer
Open source and optional managed cloudrustunnel
Free + already on CloudflareCloudflare Tunnel
Everything already on TailscaleTailscale Funnel
SSH one-liner SaaSPinggy
Pure DIY, no SaaSfrp or boringproxy
OpenZiti ecosystemZrok
Maximum commercial maturity / enterprise packagingngrok (still the incumbent)
AI agents opening tunnels via MCPrustunnel (MCP docs, Claude Code guide)
                    need public URL for localhost?
                              |
              +---------------+----------------+
              |                                |
        already on CF/Tailscale?          want open source?
              |                                |
         yes: use that stack              yes: rustunnel / frp / zrok
         no: continue                          |
                                        want managed too?
                                          yes → rustunnel
                                          no  → frp / boringproxy

Architecture note: what “ngrok alternative” actually means

Most tools in this list implement a reverse tunnel: a client behind NAT dials out to a relay; the relay accepts public traffic and forwards it down the long-lived connection. That is different from opening inbound firewall ports.

rustunnel’s managed path uses multi-region edges and metered bandwidth; the self-host path puts the same protocol on your metal. Details live in the architecture docs and the P2P tunnels reference if you care about direct peer paths vs always-on relays.

FAQ

What is the best free ngrok alternative?

For free managed options, Cloudflare Tunnel and Tailscale Funnel are hard to beat if you accept their ecosystems. rustunnel’s Hobby tier is free for light concurrent use, and self-hosting is free under AGPL. Localtunnel is free but flakier.

What is the best open-source ngrok alternative?

rustunnel if you want open source plus a pay-as-you-go cloud. frp if you only self-host. Zrok if OpenZiti shares fit your threat model.

Can I self-host a tunnel?

Yes — rustunnel, frp, Zrok, boringproxy, and others. ngrok self-host is enterprise-gated. Start with self-hosting docs or the Hetzner walkthrough.

How do ngrok alternatives compare on pricing?

Fixed monthly plans (ngrok-style) charge even when tunnels idle. Metered models (rustunnel PAYG) charge for bandwidth with a small floor. Cloudflare/Tailscale often feel “free” until org features kick in. Always verify current public pricing pages.

Which alternative is best for webhooks?

Any stable HTTPS tunnel works. Prefer reserved/custom hostnames for OAuth and Stripe. rustunnel PAYG custom subdomains, Cloudflare with your DNS, or self-hosted custom domains all work — see expose local HTTPS.

Try rustunnel

# macOS
brew install rustunnel
 
# Linux
curl -fsSL https://install.rustunnel.dev | sh
 
rustunnel http 3000

Or create a free account for the managed cloud, then open the dashboard. If this listicle helped, the highest-leverage next step for the ecosystem is still the same as ever: ship honest comparison content, keep the open-source server excellent, and measure whether AI engines start citing pages like this for “best ngrok alternatives.”