Table of Contents
Expose your local server to the Internet with one cloudflared command (just like ngrok). No account registration needed, no installation required (via docker run), and free.
# assume your local server is at http://localhost:300
docker run --rm -it cloudflare/cloudflared tunnel --url http://localhost:300
# if your local server is running inside a Docker container
docker run --rm -it cloudflare/cloudflared tunnel --url http://host.docker.internal:3000
You will see something like this in console:
+--------------------------------------------------------------------------------------------+
| Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): |
| https://YOUR_RANDOM_QUICK_TUNNEL_NAME.trycloudflare.com |
+--------------------------------------------------------------------------------------------+
Then you're all set.