Skip to content

Test Your Tailscale RDP Connection

Introduction

After configuring Windows Defender Firewall, you should verify that Remote Desktop connections work through Tailscale and are blocked through the VPS's public IP address.

In this section, we'll test both connection methods to confirm that your VPS is only accessible through the authorised Tailscale devices.

Test 1: Connect Using the Tailscale IP Address

First, verify that you can connect to your VPS through its private Tailscale IP address.

1

Open Remote Desktop

On your local computer, open the Start menu, search for Remote Desktop Connection, or press Win + R, enter mstsc, and press Enter.

2

Enter the VPS Tailscale IP address

Enter the Tailscale IP address assigned to your VPS.

If your VPS uses a custom RDP port, include it after the IP address. For example:

100.80.0.3:39668

3

Connect to your VPS

Enter your Windows Server credentials and confirm that you can successfully connect.

Expected result

The Remote Desktop connection should succeed.

Test 2: Connect Using the Public IP Address

Next, verify that Remote Desktop connections through the VPS's public IP address are blocked.

  1. Disconnect the existing RDP session only after confirming that a separate Tailscale RDP session works.
  2. Attempt to connect using the VPS's public IP address and RDP port.
  3. Confirm that the connection is unsuccessful.

Expected result

The Remote Desktop connection should be blocked.

Test Connectivity Using PowerShell

You can also test connectivity using PowerShell on your local computer.

Test the Tailscale IP address:

Test-NetConnection -ComputerName "100.80.0.3" -Port 39668

Test the public IP address:

Test-NetConnection -ComputerName "YOUR-VPS-PUBLIC-IP" -Port 39668

Replace the example addresses and port with your actual VPS details. If your VPS uses the default RDP port, use 3389 instead of 39668.

For a successful connection, you should see:

TcpTestSucceeded : True

For a blocked connection, you should see:

TcpTestSucceeded : False

Note

Perform the public IP test using the VPS's public IP address, rather than its Tailscale IP address. The public IP test should not use the private Tailscale connection.

Conclusion

Your Windows VPS should now accept Remote Desktop connections only through Tailscale and from the approved devices.

The public-facing network interfaces will no longer accept RDP connections, reducing the VPS's exposure to internet-based Remote Desktop attacks.

For additional protection, you can also restrict the RDP port through your VPS provider's network firewall.

Important

Keep Tailscale installed and running on both devices. Removing or disconnecting Tailscale will prevent you from using the private RDP connection.

Additional Resources