If you've needed a public URL for a local server, you've probably run ngrok http 3000 at some point. It works. It gets the job done. But "it works for the moment" and "it's the right tool for your use case" are different things.
In 2026, developers have three serious options: ngrok, Cloudflare Tunnel and DomainDock. Each solves a related but distinct problem. This post breaks down exactly when to use each one.
The Core Question: What Are You Actually Trying to Do?
Before comparing features, get clear on your goal:
- Exposing a local dev server temporarily: you want a URL that works for the next hour while you demo or test
- Routing a deployed server with a permanent domain: you want a stable URL for a project that's actually running somewhere
- Sharing a project that's live on a VPS: you need real DNS, real SSL and real uptime monitoring
The answer to that question will immediately tell you which tool to reach for.
ngrok
ngrok is the original "localhost tunnel" tool. You install a binary, run ngrok http 3000 and get a URL like https://3f8d2c.ngrok-free.app that proxies to your local machine.
What ngrok is good for
- Webhook testing: Stripe, GitHub and other services need a real HTTPS URL to POST to. ngrok works immediately
- Rapid demos: show a local prototype to a colleague in another building or another country without deploying anything
- One-off debugging: reproduce a production issue locally and let a teammate view it live
ngrok's real limitations
You don't pick the address. The free plan comes with one dev domain that ngrok assigns, something like https://3f8d2c.ngrok-free.app. It no longer changes on every restart, which fixed the old webhook pain. But you can't choose the name. Every project you tunnel shares that one domain. Names you pick yourself are on paid plans.
The free plan is for testing. It includes 1 GB of outgoing data a month. Visitors opening the address in a browser see an ngrok warning page first. Fine for webhooks and a quick look. Awkward for a link you send to a client.
It doesn't replace real infrastructure. ngrok is a tunnel; your laptop has to be on for it to work. It's not designed for anything that needs to stay up when you close your lid.
No server-side hosting. ngrok has no concept of a VPS or a server. It only proxies to whatever is running on your local machine.
ngrok verdict
Perfect for local development and webhook testing. A poor fit for anything that needs to be available when your laptop is off or for several apps that each need an address you'd put on a business card.
Cloudflare Tunnel
Cloudflare Tunnel (formerly Argo Tunnel) is a different beast. You install the cloudflared daemon on a server, authenticate it with your Cloudflare account and it creates an outbound connection to Cloudflare's edge. No inbound ports needed.
What Cloudflare Tunnel is good for
- Exposing servers behind strict firewalls: if your server can't accept inbound connections (corporate NAT, cloud provider restrictions), Cloudflare Tunnel gets around this cleanly
- Zero-trust access: Cloudflare Access integrates with Tunnel to gate your apps behind SSO, email OTP or identity providers
- Production-grade traffic: Cloudflare's global network handles DDoS, caching and routing at scale
Cloudflare Tunnel's real limitations
You need your own domain. Cloudflare Tunnel requires you to already own a domain registered with Cloudflare. If you're a student with a fresh VPS and no registered domain, you can't use it without spending money first.
The setup is not trivial. You need a Cloudflare account, a registered domain, DNS records pointed to Cloudflare, cloudflared installed and authenticated, a tunnel created and routes configured. It's manageable, but it's several steps.
Overkill for side projects. The zero-trust features, access policies and enterprise integrations are excellent, but completely unnecessary if you're building a personal project.
No health monitoring built in. Cloudflare Tunnel routes traffic but doesn't tell you when your backend goes down. You need a separate monitoring setup.
Cloudflare Tunnel verdict
Excellent for teams and enterprises that need secure, inbound-connection-free access to internal services. Too much configuration overhead for indie developers who just want a clean domain on a VPS.
DomainDock
DomainDock gives a project a clean, permanent address like myapp.digitalweb.host with HTTPS. It sends the visitors to wherever the app runs. Since November 2026 that can be either of two places:
- A server with a public address: a VPS, a cloud instance or an app already hosted somewhere like Render or Vercel. There's nothing to install.
- Your own computer or any machine without a public IP. A small open-source agent (frp) runs next to your app and connects out to DomainDock, so it works behind routers and firewalls. This is the part that overlaps with ngrok.
What DomainDock is good for
- Stable addresses for deployed projects: point
yourproject.digitalweb.hostat a server or a hosted app and keep it, whatever the host's own URL looks like. - Local apps with an address that doesn't change: run the tunnel agent on your laptop and
demo.digitalweb.hostreaches it. Stop the agent and visitors see an "offline" page; start it again tomorrow and it's the same address, so webhook settings don't need updating. - Several services behind one domain: send
/apito your backend and everything else to your frontend. - Client previews: put a password in front of a domain, or switch on a "back soon" page while you deploy.
What DomainDock doesn't do
- Only HTTP and HTTPS. No raw TCP or UDP tunnels, so no exposing a database or an SSH port. ngrok and Cloudflare Tunnel both cover those.
- Addresses are on our domains. You get
name.digitalweb.host(or another ending we offer), not your ownyourapp.com. Cloudflare Tunnel is the better fit when you already own the domain you want to use. - No identity-based access rules. Password protection is one shared username and password per domain. If you need "only people from our company's Google account", that's Cloudflare Access territory.
- Limits. Up to 10 projects with 5 domains each. One tunnel serves one address.
Where DomainDock differs
It's free, with no credit card. Tunnels, paths, backups and analytics are all on the free plan.
Addresses don't expire. A domain stays until you delete it, whether it points at a server or at a tunnel that's switched off right now.
It watches the server for you. Server domains get a health check every 5 minutes, with an email when one stays down. Visitors see a clear status page instead of a browser error. You can add a backup server that takes over within seconds.
It counts visitors without a script. Each domain has analytics (visitors, sources, countries, top pages) counted at the gateway, so there's nothing to add to your site.
Side-by-Side Comparison
| ngrok | Cloudflare Tunnel | DomainDock | |
|---|---|---|---|
| Exposes a local server | Yes | Yes | Yes (frp agent) |
| Routes to a public server or hosted app | Rarely used for it | Yes | Yes, nothing to install |
| Permanent address | One assigned dev domain free; your own names paid | Yes (own domain required) | Free, names you choose |
| Own domain required | No | Yes | No (and can't use one) |
| TCP / UDP | Yes | Yes | No, HTTP(S) only |
| SSL | Yes | Yes | Yes (auto) |
| Health checks and down alerts | No | No | Yes (server domains) |
| Visitor analytics | Basic | Through Cloudflare | Yes |
| Setup complexity | Very low | Medium-High | Low |
| Cost | Free / $8+/month | Free (need domain ~$10/yr) | Free |
The Decision Tree
You need a public URL for the next ten minutes and don't care what it looks like: ngrok is still the quickest.
You need TCP, your own domain or access rules tied to your team's identity provider: use Cloudflare Tunnel.
You want an address that stays the same, for a laptop demo, webhooks or a project on a VPS or free host: use DomainDock. The same address can move from your laptop to a server later without changing anything for visitors.
DomainDock is free to start. Create your account and have your first domain live in about a minute. The tunnel guide shows the laptop setup step by step. For a side-by-side table that also covers Tailscale Funnel, localtunnel, DuckDNS and Nginx Proxy Manager, see DomainDock vs the alternatives.