ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
2 replies
Obi

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)
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
CNAME xxx application on railway (no proxy)
CNAME rdp UUID


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


On my client I ran
cloudflared access rdp --hostname rdp.my-domain.me --url rdp://localhost:3389
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
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?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Websocket Tunneling
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago
split tunneling
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
UDP Tunneling
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
SSH Tunneling
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago