-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: --cert
does not work on Windows
#6022
Comments
--cert
for https and got empty web page with Error: listen EACCES: permission denied
@longilacus could you please try to run code-server on a powershell with admin privilege? |
I have tried powershell with admin privilege, but still gor the blank page. Run with
|
@longilacus please paste output of below command from your cmd prompt in admin mode - netsh interface ipv4 show excludedportrange protocol=tcp also could you please try to change the port from 8080 to something random (may be 32654 )while using the certificate. |
I tried other port like 8111, 27089, 32654. Still got Error: listen EACCES: permission denied |
Just to begin the debugging, do you have any VPN clients installed? |
Yes, I have a clash VPN installed. Just tested that with VPN running or exit makes no difference. Because When using |
Hmm yeah code-server needs to create that tls-proxy socket so if
it lacks permissions TLS will not work.
|
If possible I would recommend using something else to handle TLS
termination like a reverse proxy such as Caddy, NGINX, etc.
|
Ah but since this happens even with admin I think it is possible this code needs to be reworked to work on Windows. I think you have to use named pipes instead of Unix sockets and they have to start with |
I met the same TLS permission problem in Windows both in admin/general user. I followed your advice and use NGINX. Then code-server can work well and there's no permission problems. |
--cert
for https and got empty web page with Error: listen EACCES: permission denied
--cert
does not work on Windows
yes and no, there's partial support for unix sockets since windows 10 1803. |
Just came across this myself, I'd been trying to avoid WSL but I guess that's the next step. A note about this could be useful in the docs. |
Merging this into the Windows support issue: #1397 |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.9.1Steps to Reproduce
Expected
Enter the password and then show vscode gui
Actual
The page is blank empty and powershell get some error.
Logs
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: