# Cloudflare Spectrum for Windows RDP

### Prerequisites

Before you begin, ensure you have:

* A Cloudflare account with an active subscription plan that supports Spectrum.
* Administrative access to your Windows RDP server.
* The public IP address of your Windows RDP server.

### Step-by-Step Guide

#### Step 1: Log in to Cloudflare

1. Go to the Cloudflare [website](https://www.cloudflare.com) and log in to your account.

#### Step 2: Add Your Domain

1. If you haven't already, add your domain to Cloudflare by selecting **Add a Site** and following the prompts.
2. Update your domain's nameservers to point to Cloudflare.

{% hint style="info" %}
Make sure your domain is properly configured to utilize Cloudflare services before setting up Spectrum.
{% endhint %}

#### Step 3: Enable Spectrum

1. In your Cloudflare dashboard, navigate to the **Spectrum** section from the left-hand menu.
2. Click on **Create a Spectrum Application**.

#### Step 4: Configure Spectrum Settings

1. **Application Name**: Enter a name for your Spectrum application (e.g., "RDP Server").
2. **Protocol**: Select **TCP** from the dropdown list.
3. **Application Type**: Choose **Custom**.
4. **Origin**: Enter the public IP address of your Windows RDP server (e.g., `203.0.113.1`).
5. **Port**: For RDP, the default port is **3389**.
6. **Set up the Cloudflare hostname**: Enter the hostname for your RDP service (e.g., `rdp.example.com`).

{% hint style="success" %}
Utilizing a custom hostname helps you manage and identify your applications more easily.
{% endhint %}

#### Step 5: Configure Additional Settings (Optional)

1. **Authentication**: Set up any authentication you wish to enforce via Cloudflare.
2. **TLS/SSL**: Enable TLS to enhance security. You can choose to use a full or flexible SSL mode, depending on your setup.
3. **Firewall Rules**: Configure any additional firewall rules if needed to restrict access to specific IP ranges.

#### Step 6: Save Your Configuration

1. Review your settings and click on **Save** to create the Spectrum application.
2. After the application is created, note the Cloudflare-provided hostname for your RDP connection (e.g., `rdp.example.com`).

{% hint style="info" %}
It may take a few moments for the changes to propagate. You can check the status from the Spectrum dashboard.
{% endhint %}

#### Step 7: Connect to Your RDP via Cloudflare Spectrum

1. Open your Remote Desktop Connection client on your computer.
2. Enter the Cloudflare hostname (e.g., `rdp.example.com`) in the "Computer" field.
3. Click **Connect** and enter your credentials as prompted.

{% hint style="success" %}
You should now be able to connect to your Windows RDP server securely via Cloudflare Spectrum.
{% endhint %}

#### Conclusion

You have successfully set up Cloudflare Spectrum for your Windows RDP environment, providing enhanced security and performance for your remote connections.

For more information about managing Spectrum applications, visit the [Cloudflare Spectrum documentation](https://developers.cloudflare.com/spectrum).
