kartik-scripts
  • Welcome
  • Scripts
    • MDT/Dispatch
      • Installation
      • Preview
      • Configuration
        • Items
        • Animations
        • Evidence
        • Reports & FTO Categories
        • Misc
        • Dispatch
        • Permissions
        • Cameras
        • Server Config
        • Dispatch Alerts
        • Commands Registration
      • Supported Frameworks/Scripts
      • Events
        • Server Side
          • 🚨 Dispatch Alert
      • Exports
        • Client Exports
          • Custom Alert
          • ToggleBodycam
          • openMDT
          • openDispatch
        • Server Exports
          • Update Citizen License
          • Register Weapon
          • Add Fake Profiles
          • Remove Fake Profile
      • FAQs
        • ❓ Toggle Duty
        • 🔊 xsound Issue
        • wk_wars2x Configuration
      • Live Collaboration Setup
        • Setup
          • 1. WebSocket Based Setup
            • Cloudflare Tunnel
            • Ngork
          • 2. Event-Based Setup
Powered by GitBook
On this page
  1. Scripts
  2. MDT/Dispatch
  3. Live Collaboration Setup
  4. Setup
  5. 1. WebSocket Based Setup

Cloudflare Tunnel

Previous1. WebSocket Based SetupNextNgork

Last updated 13 days ago

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:

  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.

https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe