Insights

ngrok Alternatives: 6 Ways to Put a Local App Online

ngrok Alternatives: 6 Ways to Put a Local App Online

ngrok made a simple idea popular: run one command, get a public URL for something on your laptop. It is still a good tool. But people look for alternatives for real reasons. Some want to self-host. Some want their own domain without a paid plan. Some only want specific people to reach the app, not the whole internet. And some want the machines themselves to be reachable privately, not just one web port.

This guide compares six ngrok alternatives, what each one needs, how it controls access, and which job it suits. Each option below was checked against its own documentation.

How tools like ngrok work

Your app runs on a machine behind a router, often behind NAT or CGNAT, with no public address. Instead of opening a port on that router, a small client on the machine makes an outbound connection to a server that does have a public address. Visitors connect to that server, and their traffic travels back down the established connection to your app.

Every tool here follows that pattern. They differ in who runs the public server, what address visitors use, and who is allowed through.

The ngrok baseline

With ngrok you install the agent, add your authtoken, and run:

ngrok http 8080

Every account includes a development domain, and paid plans can reserve domains or bring their own. ngrok's traffic policies can add authentication, such as OAuth, in front of an endpoint. Keep that baseline in mind when comparing.

Comparison at a glance

ToolYour own server?Account neededAccess controlBest for
Cloudflare TunnelNoNone for a quick tunnel; an account and a domain on Cloudflare for a named tunnelCloudflare Access policiesProduction sites on your own domain
Tailscale FunnelNoA Tailscale accountNone on the public URL; use Tailscale Serve to keep it inside your tailnetBriefly exposing one service from a tailnet device
localtunnelOptionalNoneNone built inThrowaway tests and callbacks
frpYes, with a public IPNoneWhatever you configureSelf-hosters who want full control
SSH reverse tunnelYes, a VPSNoneWhatever you put in frontOne-off forwarding through a server you already run
noBGPNoA noBGP accountSign-in required by default; share by email or domainSharing with specific people, private access, and AI-driven workflows

1. Cloudflare Tunnel

Cloudflare's cloudflared daemon creates outbound-only connections from your machine to Cloudflare's network, so the origin needs no open inbound ports.

For a quick test, a Quick Tunnel needs no account or domain and gives you a temporary trycloudflare.com URL:

cloudflared tunnel --url http://localhost:8080

Cloudflare describes Quick Tunnels as being for testing and development. For anything lasting, you create a named tunnel on a domain managed by Cloudflare and protect it with Cloudflare Access.

Choose it when you want a production-grade public site on your own domain and are comfortable moving DNS to Cloudflare.

2. Tailscale Funnel

If you already use Tailscale, Funnel exposes a service on one of your devices to the public internet at a name in your tailnet's ts.net domain. Its documentation lists clear limits: Funnel listens only on ports 443, 8443, and 10000, works only over TLS, and is subject to bandwidth limits you cannot configure.

Funnel is public by design. To share only with people already in your tailnet, Tailscale Serve is the private counterpart.

Choose it when your devices are already on Tailscale and you need to expose one web service briefly.

3. localtunnel

localtunnel is an open-source tool you can run without an account:

npx localtunnel --port 8080

It connects to a tunnel server and prints a URL that stays active for your session. You can also run your own localtunnel server.

Choose it when you need a throwaway URL for a quick test or a webhook callback, and nothing sensitive is behind it.

4. frp (fast reverse proxy)

frp is an open-source reverse proxy for exposing a server behind NAT or a firewall. You run frps on a server with a public IP address and frpc on the machine with your app, and configure which ports and domains map where. It handles TCP, UDP, HTTP, and HTTPS.

The trade-off is ownership: you run, patch, and secure the public server and its TLS setup.

Choose it when you want a fully self-hosted ngrok alternative and are happy to maintain a small VPS.

5. SSH reverse tunnel

If you already have a VPS, plain SSH can do the job with no extra software:

ssh -R 8080:localhost:3000 you@your-vps.example.com

That forwards port 8080 on the VPS to port 3000 on your machine. By default the forwarded port listens only on the VPS's loopback, so to make it public you set GatewayPorts in the VPS's sshd_config, or put a web server such as Caddy or nginx in front for HTTPS.

Choose it when you need a quick, dependency-free forward and already run a server.

6. noBGP

noBGP takes a different starting point. Instead of a tunnel per port, it connects whole machines. You install the noBGP agent on the machine running your app, and from there you can do two things.

Publish a web app at an HTTPS URL. Ask your AI assistant ("publish port 8080 on my dev machine") or use the noBGP dashboard. The service gets an address such as https://a1b2c3d4.nobgp.link, with certificates handled for you. Sign-in is required by default, so you decide who gets in: grant access by email address, or a whole company with a wildcard such as *@example.com. Visitors without access can request it, and you approve or deny. Making a service fully public is a deliberate step that needs an Owner or Admin role.

Reach everything else privately. Not every service should be on a public URL. Databases, SSH, and admin tools usually should not. Put your machines in the same noBGP network and they reach each other by name, over ordinary TCP and UDP ports, without exposing anything to the internet. For example, ssh you@dev-box or psql -h db-server.

Because noBGP works through MCP, the whole flow can live in a conversation with Claude or ChatGPT: deploy the app, start it, publish it, check the URL answers, and share it. See how to share a working demo at an HTTPS URL.

Two limits to know: published services are HTTP web apps and browser terminals, and the address is on nobgp.link rather than your own domain. For raw TCP access, use the private network instead.

Choose it when you want to share with specific people rather than everyone, reach more than one port on a machine, or have your AI assistant do the deploying and publishing.

How to choose

  • A quick public URL for a test: localtunnel or a Cloudflare Quick Tunnel.
  • A production site on your own domain: Cloudflare Tunnel with Access.
  • Full self-hosting: frp, or an SSH reverse tunnel for something small.
  • One service from a Tailscale device: Tailscale Funnel.
  • Specific people only, plus private access to the rest of the machine: noBGP.

Alternatives to port forwarding

All six of these are also alternatives to port forwarding on your router. Port forwarding sends a port on your public IP straight to a device inside your network. It fails behind CGNAT, which many mobile and fiber providers use, and it exposes the service to every scanner on the internet. An outbound tunnel or a private network avoids both problems.

Frequently asked questions

Is there a free alternative to ngrok?

Yes. localtunnel, frp, and SSH reverse tunnels are free to use. Cloudflare Quick Tunnels need no account. Several commercial tools, noBGP among them, also have free plans.

What is the best ngrok alternative for webhooks?

Any tool that gives a stable public HTTPS URL works for webhooks. Avoid URLs that change every session, because you would have to update the webhook each time.

Can I use an ngrok alternative with my own domain?

Cloudflare Tunnel, frp, and an SSH tunnel behind your own web server all support your own domain. noBGP published services use a nobgp.link address.

Which alternative is safest for a demo of unreleased work?

One that requires sign-in, so the link alone is not enough. With noBGP, published services require sign-in by default and you choose who can open them.

Try the private-by-default option

Install the noBGP agent on the machine running your app and publish it with sign-in required. Read the publishing services guide.

Put your first device within AI reach.

Choose your path.