Kartik Scripts

Cloudflare Tunnel

Installation:

Install Cloudflared using Winget in CMD:

winget install Cloudflare.Cloudflared

❌ If Winget Method Doesn't Work (Fallback Option):

  1. Download the latest Cloudflared executable directly from:
    https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe

  2. Rename the file to cloudflared.exe (if it isn’t already).

  3. Move the file to your user folder or any directory you can easily access, for example:

    C:\Users\YourUsername\
  4. Now run cloudflared commands below


With Login Setup:

Login to Cloudflare:

cloudflared login

Create a Tunnel:

cloudflared tunnel create my-tunnel

Run the Tunnel:

cloudflared tunnel run my-tunnel

Without Login Setup

Run the Tunnel:

Simply run:

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

If above one dosent work and using QUIC then use the below command in CMD

cloudflared tunnel --protocol h2mux --url http://localhost:3001

Features:

  • Instantly generates a public URL.
  • Supports both HTTPS and WebSocket (wss://) connections.
  • No domain or zone configuration required.

You’ll get a URL like:

https://randomstring.trycloudflare.com

Use this URL in your MDT configuration for quick testing or temporary setups.

On this page