Open Source Alternatives to ngrok

Updated 5 December 2026 · 1 alternatives · Backend, Hosting & Auth

ngrok exposes local servers to the internet through secure tunnels. Custom domains and more bandwidth need a paid plan. Here is 1 open source alternative, all of them self-hostable.
Top pickfrpApache-2.0 · ★ 111k
Best self-hostedfrpApache-2.0 · ★ 111k
Hosted optionNone listed
ngrok is made byngrok Inc.Proprietary

ngrok alternatives compared

Project Licence Type Self-host Cloud option GitHub stars
frp Apache-2.0 Self-hosted ✓ Yes — ★ 111k

The 1 open source alternatives to ngrok

1

frp

Apache-2.0 · Self-hosted · ★ 111k on GitHub · since 2016

Visit site ↗

frp exposes services behind NAT or a firewall to the internet through your own server. It supports TCP, UDP, HTTP and HTTPS, and is the most popular self-hosted ngrok replacement.

  • TCP, UDP, HTTP and HTTPS
  • Custom domains
  • P2P mode
  • Dashboard
Self-hosted Source code ↗

How to choose an open source alternative to ngrok

Check HTTP and TCP tunnels, custom domains, TLS and whether you can run the relay on your own VPS.

If you want your data on your own server, look at frp.

Not sure where to start? Browse all backend, hosting & auth projects.

ngrok alternatives: FAQ

What is the best open source alternative to ngrok?

frp is the most complete open source alternative to ngrok on our list. The best choice depends on what you need: Check HTTP and TCP tunnels, custom domains, TLS and whether you can run the relay on your own VPS.

Is there a free alternative to ngrok?

Yes. Every alternative listed here is open source, so the software itself is free to use.

Can I self-host an alternative to ngrok?

Yes: frp can be installed on your own server, so your data stays on infrastructure you control.

Why switch from ngrok to open source software?

ngrok is proprietary software owned by ngrok Inc.: you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as Apache-2.0, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.

Other popular alternatives

Browse 350+ open source alternativesSearch by product, category or licence