Skip to content

Secure Windows VPS Remote Desktop Access Using Tailscale

Introduction

Tailscale allows you to connect multiple devices through a private network, even when they are located in different geographical locations.

In this tutorial, we'll install Tailscale on your local computer and Windows VPS, connect both devices using the same Tailscale account, and configure Windows Defender Firewall to restrict Remote Desktop (RDP) access to authorised devices.

Once completed, you will be able to access your VPS using its private Tailscale IP address without exposing RDP through its public IP address.

What is Tailscale?

Tailscale creates a private network between your devices, allowing them to communicate securely without requiring you to expose services directly to the public internet.

For Windows VPS users, this provides a way to access Remote Desktop through a private Tailscale IP address rather than relying on the VPS's public IP address.

What will this tutorial cover?

This guide will walk you through the following:

  • Installing Tailscale on your local Windows computer.
  • Installing Tailscale on your Windows VPS.
  • Connecting both devices through the same Tailscale account.
  • Identifying the private Tailscale IP addresses assigned to your devices.
  • Configuring Windows Defender Firewall to restrict RDP access to authorised Tailscale devices.
  • Testing the connection to verify that RDP is accessible through Tailscale but blocked through the public IP address.

Prerequisites

Before starting, make sure you have:

  • A Windows computer that you will use to access the VPS.
  • A Windows Server VPS.
  • Administrator access to the VPS.
  • A Tailscale account.

Tutorial sections

Follow the sections below in order:

  1. Install Tailscale on Your Devices
  2. Connect Both Devices Through Tailscale
  3. Restrict RDP Access to Tailscale Only
  4. Test Your Tailscale RDP Connection

What's next?

Start by installing Tailscale on your local Windows computer and Windows VPS.

Continue to Install Tailscale on Your Devices to begin.