RDP Tunneling

I've been trying to tunnel my RDP on my Win 11 Pro PC. I bought a domain on cloudflare and am trying to route through it.


My tunneling settings
name: remote-desktop
public hostname: rdp.my-domain.me
path: *
service: rdp://localhost:3389 (i've also tried rdp://192.168.xxx.x:3389)


DNS
CNAME xxx application on railway (no proxy)
CNAME rdp UUID


On my PC I ran cloudflared.exe service install ...

On my client I ran cloudflared access rdp --hostname rdp.my-domain.me --url rdp://localhost:3389

I got the following error:

2024-07-04T22:31:49Z INF Start Websocket listener host=localhost:3389
2024-07-04T22:31:57Z ERR failed to connect to origin error="websocket: bad handshake" originURL=https://rdp.my-domain.me


I've tried looking online but I don't see anything that could be the issue.

I have WebSockets enabled in Network

Any ideas what's wrong?
Was this page helpful?