RDP returns error 0x4 and Cloudflared returns websocket: bad handshake error

What is the name of the domain?

sample.com

What is the error message?

{“level”:“error”,“error”:“websocket: bad handshake”,“originURL”:“https://xxx.sample.com”,“time”:“2024-12-19T21:39:42Z”,“message”:“failed to connect to origin”}

What is the issue you’re encountering

Can’t RDP to a Windows 11 computer via Cloudflare tunnel.

What steps have you taken to resolve the issue?

The status of the tunnel is healthy.
The Remote Desktop app returns error: “An internal error has occurred. Error code: 0x4 Extended error code: 0x0”
The log of the Cloudflared is :
{“level”:“debug”,“time”:“2024-12-19T21:54:55Z”,“message”:“Websocket request: GET / HTTP/1.1\r\nHost: xxxx.sample.com\r\nUser-Agent: cloudflared/2024.12.2\r\n\r\n”}
{“level”:“error”,“error”:“websocket: bad handshake”,“originURL”:“https://xxxx.sample.com”,“time”:“2024-12-19T21:54:58Z”,“message”:“failed to connect to origin”}

What are the steps to reproduce the issue?

May I ask if you’re still experiencing this issue? :thinking:

The issue has been resolved.

The cause of the issue is that there was a typo in the URL of the Service.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.