Skip to content

Instantly share code, notes, and snippets.

@jmoraispk
Created April 25, 2026 13:37
Show Gist options
  • Select an option

  • Save jmoraispk/9133d88159206da53318dacd32c78871 to your computer and use it in GitHub Desktop.

Select an option

Save jmoraispk/9133d88159206da53318dacd32c78871 to your computer and use it in GitHub Desktop.
Remote Access Your Windows/MacOS PC from Your Phone (RDP + Tailscale)
## What this is
You can remotely control your Windows PC from your phone using:
* **Tailscale** (secure private network, no port forwarding)
* **Remote Desktop (RDP)**
---
## Setup
### 1. Install Tailscale
* Install on **PC** and **phone**
* Log into the same account
* On PC, get its IP:
```powershell id="9p2l6f"
tailscale ip -4
```
---
### 2. Enable Remote Desktop on Windows
* Settings → System → Remote Desktop → **Enable**
---
### 3. Connect from phone
* Install **Windows App**
* Add new PC:
* Address: `100.x.x.x` (Tailscale IP)
#### Username formats (important)
Depending on your setup:
* **Work / Azure AD account**
```id="w8n2jd"
AzureAD\email@company.com
```
* **Domain account**
```id="0qk3sm"
domain.com\username
```
* **Local account**
```id="v6t8lx"
PCNAME\username
```
---
## Common Error (0x3107)
### Symptom
* Connection succeeds
* Login fails (even with correct credentials)
### Cause
* Windows uses **Azure AD + Network Level Authentication (NLA)**
* NLA can fail over Tailscale connections
---
## Fix
On your PC:
```powershell id="c3xk9n"
SystemPropertiesRemote
```
Uncheck:
```id="r5m1fz"
Allow connections only from computers running Network Level Authentication (NLA)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment