Free domain for localhost

Your localhost, on a real domain

The app running on localhost:3000 gets https://yourname.digitalweb.host. No server to rent and no router to configure. The address is still yours tomorrow.

Get started free

Why localhost is hard to share

Your laptop is behind a router, often behind your internet provider’s shared address too (CGNAT). Office networks block incoming connections on purpose. Nobody outside can reach localhost:3000, which is exactly what you want most of the time.

Until a client needs to click through the prototype, Stripe needs to deliver a webhook or you want to try the site on your actual phone. Deploying just for that is slow. Opening ports on your router is risky and often impossible.

How it works: a tunnel that connects out

A small agent runs next to your app and opens a connection out to DomainDock, the same way your browser opens a website. When someone visits https://yourname.digitalweb.host, DomainDock sends the request down that connection and the agent hands it to your app. Nothing is opened on your router.

The agent is frp, a widely used open-source tunnel. You can run it as a single binary or with one docker command. It connects over HTTPS on port 443, so it works on most networks that allow web browsing.

frpc http -s tunnel.digitalweb.host -P 443 -p wss -l 3000 \
  -d demo.digitalweb.host -n demo.digitalweb.host \
  --metadatas token=<your-token>

An address that stays the same

Quick tunnels usually hand you a name you didn’t choose. Some give you a new one on every restart. Then you update it in Stripe, GitHub and your OAuth settings again. Here the address is a domain you named, so it survives restarts, reboots and weekends.

When the project is ready for a real server, change the same domain’s target to the server. Visitors and webhook providers never notice the move.

What else you get on the same domain

A tunnel is a domain like any other, so the rest of DomainDock works on it too.

  • HTTPS with a certificate that renews itself
  • Password protection, so a client preview isn’t public
  • A backup server that answers while your laptop is closed
  • Paths: keep /api on a hosted server and serve everything else from your laptop
  • Visitor analytics without a script

Limits worth knowing

Tunnels carry HTTP and HTTPS only, so you can’t tunnel a database, SSH or a game server. Each tunnel serves one address. When the agent stops, visitors see a clear “tunnel offline” page until you start it again.

Whatever you tunnel is on the internet while the agent runs. Dev servers often have debug pages and unprotected admin routes, so turn on password protection for anything that isn’t meant to be public.

Set it up in three steps

  1. 1

    Create a tunnel domain

    Sign in with Google, add a domain, pick a name and choose On my computer. You get the agent command with your private token.

  2. 2

    Run the agent next to your app

    Download frpc or use the docker command, set the port your app listens on and run it. The dashboard shows Agent connected within seconds.

  3. 3

    Share the address

    https://yourname.digitalweb.host now reaches your laptop over HTTPS. Stop the agent to take it offline; start it again and the same address is back.

Questions people ask

Yes. Tunnels are part of the free plan, with no credit card. Each account can have up to 10 projects with 5 domains each. Any of them can be a tunnel.

No. The agent connects out to DomainDock over HTTPS on port 443, so it works behind home routers, CGNAT and most office firewalls.

No. The address is a domain you created, like demo.digitalweb.host. It stays the same across restarts until you delete it.

Yes. Point Stripe, GitHub or any webhook provider at your tunnel address once. Your local app receives the requests whenever the agent is running. The URL never needs updating.

Visitors see a page saying the tunnel is offline. If the site must stay up, add a backup server on the domain and visitors get that instead.

Keep reading

Newsletter

Developer infrastructure, in your inbox

New guides on domains, SSL certificates and deploying to your own server. A couple of emails a month at most.

No spam. Every email has a one-click unsubscribe.