# Cloudflare Tunnel

**Installation:**

Install Cloudflared using Winget in CMD:

```bash
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](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:

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

***

{% hint style="warning" %}
**With Login Setup:**
{% endhint %}

**Login to Cloudflare:**

```bash
cloudflared login
```

**Create a Tunnel:**

```bash
cloudflared tunnel create my-tunnel
```

**Run the Tunnel:**

```bash
cloudflared tunnel run my-tunnel
```

***

{% hint style="warning" %}
Without Login Setup
{% endhint %}

**Run the Tunnel:**

Simply run:

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

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


```bash
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:

```arduino
https://randomstring.trycloudflare.com
```

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