Lesson 0002 · Public URLs for lab guides
One binary, one command, zero signup. cloudflared dials out from your Codespace and hands back a public trycloudflare.com URL that needs no login — not even a Cloudflare one.
In Lesson 1 the URL came from GitHub, so it only works inside a Codespace and an org owner can switch it off. A Cloudflare quick tunnel (a.k.a. TryCloudflare) is the opposite kind of tool: it makes an outbound connection from wherever your app runs to Cloudflare's edge, and Cloudflare publishes a random public URL pointing back through it. No inbound ports, no GitHub token, and — the part you asked for — no Cloudflare account. [Cloudflare Docs]
cloudflared tunnel --url http://localhost:PORT with no login creates
a throwaway tunnel and prints a fresh https://<random>.trycloudflare.com
URL that anyone can open, no auth.
cloudflared in the Codespace (Ubuntu base — the direct .deb is the most reliable one-shot):
$ curl -L -o cloudflared.deb \
https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
$ sudo dpkg -i cloudflared.deb
$ cloudflared --version # confirm it's there
$ python3 -m http.server 8080
$ cloudflared tunnel --url http://localhost:8080
+----------------------------------------------------+
| Your quick Tunnel has been created! Visit it at: |
| https://random-words-1234.trycloudflare.com |
+----------------------------------------------------+
The command runs in the foreground and holds the terminal. For a lab guide, capture the URL without babysitting a second terminal:
$ cloudflared tunnel --url http://localhost:8080 \
--logfile tunnel.log & # run in background
$ grep -o 'https://.*trycloudflare.com' tunnel.log | head -1
Stop it later with kill %1 (or close the Codespace).
~/.cloudflared/config.yaml exists, quick tunnels refuse to start — rename it.dpkg permission error,
a config.yaml conflict, or wondering how to keep the tunnel alive when the
Codespace idles? Ask in chat and we'll sort it before Lesson 3.
Read next (primary source): Cloudflare Docs — TryCloudflare (Quick Tunnels). The authoritative reference for the command, the URL, and every limit above.