Use TryCloudflare for quick local testing

Use cloudflared quick tunnel for local testing, debugging and development #

TryCloudflare (Quick Tunnels)

  • Account required: No.
  • Custom domain: No; it generates a random, temporary subdomain on trycloudflare.com.
  • Purpose: Built strictly for quick local testing, debugging, and development.

Start Tunnel #

If already have cloudflared installed:

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

Or, run with npx:

npx -y cloudflared tunnel --url http://localhost:8080
# open the https://xxx.trycloudflare.com it prints

How it works #

host browser
  → https://yourapp-xxx.trycloudflare.com  (stable for hours, TLS at edge)
  → Cloudflare edge
  → outbound-only connection (you opened it, no inbound port)
  → cloudflared inside your container
  → http://localhost:8080 (vite dev)