DevOps

Free and open-source ngrok alternatives

ngrok (Secure tunnels and ingress to localhost) is a commercial product. These 2 tools do the same job and are free to use or to self-host.
Short answer: the best free alternatives to ngrok are zrok and frp. Self-hosting is free; you pay only for the server (a small VPS is about $4–6/mo). Licenses and prices checked 2026-10-01.
  1. 1
    zrok

    Open-source tunneling and secure sharing

    Zero-trust tunneling and sharing on OpenZiti; self-host or use the hosted one.

    Open source (Apache-2.0) ·★ 4.8k GitHub stars · last commit 2026-10-07 · details

  2. 2
    frp

    Fast reverse proxy to expose local servers

    Fast reverse proxy to expose local servers; you run the server.

    Open source (Apache-2.0) ·★ 110k GitHub stars · last commit 2026-09-15 · details

Want paid options too? See all ngrok alternatives or the full free alternatives list.

FAQ

Is there a free alternative to ngrok?+

Yes. zrok and frp do the same job for free; zrok and frp are open source.

What is the best open-source alternative to ngrok?+

frp is the most starred on GitHub (110k stars). Fast reverse proxy to expose local servers; you run the server.

Open source: OSI-approved license. Free to self-host: the code is public and free to run yourself, with limits in the license.