coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.27k stars 5.51k forks source link

[Bug]: Shows blank screen when accessing from public network using VS code's port-forwarding #6634

Closed yuemin-hu-20231024 closed 1 month ago

yuemin-hu-20231024 commented 7 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. I used code-server in conjunction with VSC's port-forwarding to gain repo access from remote machine 2.on local(0.0.0.0:8081) it works completely fine without any issue.
  2. when i using remote access (something like https://xxxxxx-8081.asse.devtunnels.ms/), after i input the password it just shows a blank screen(see attached screenshot)
  3. I tested another forwarded port (next.js server) and it is accessible, so the port forwarding worked fine
  4. I also tried LAN(192.168.x.x:8081) on both code-server machine and client machine, and it works without any issue.
  5. I also tried using tailscale and it works fine as well.

Expected

accessible from remote URL

Actual

shows blank screen

Logs

No response

Screenshot/Video

image image

Does this issue happen in VS Code or GitHub Codespaces?

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 7 months ago

The logs say the web socket failed to connect. Is your proxy not set up to proxy web sockets?

code-asher commented 1 month ago

Closing as stale but feel free to comment if you come back to this.