Skip to content

Firefox can't establish a connection to the server at localhost:54321. #1236

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

Open
2 tasks done
vectorrilke opened this issue Jul 18, 2020 · 10 comments
Open
2 tasks done

Comments

@vectorrilke
Copy link

Good day to you all,
when I am trying to setup extension, I click on "Login with Github", browser opens with address http://localhost:54321/callback?code=********* and I get error mentioned in the subject, i.e.

Firefox can't establish a connection to the server at localhost:54321.

I tried opening the link in MS Edge (the chromium based one), I tried checking hosts file to see if there is somehow any localhost redirect/blocking, I tried ipconfig flushdns and renew, nothing worked.

I do have node.js installed on my Windows 10 machine, but as I understood, it runs on localhost:5000 only if I am running node and some app within..?

Thanks for any help, I hope solving this issue would help others with seamless installation of the extension.

  • Windows 10 ver. 2004
  • latest VS Code etc.
@csaska
Copy link

csaska commented Nov 23, 2020

Are you using code-server or running VS Code natively?

I've found that this extension doesn't work when code-server is running behind an HTTPS reverse-proxy. See details here

@jasoncoleusa
Copy link

@csaska I'm having this issue as well. It's with code-server that's running in gCloud.

@chilcano
Copy link

Hi there,
I'm facing same problem.

I have:

  1. Settings Sync 3.4.3
  2. Code-Server 3.6.2 running remotely on Ubuntu 20.04.
  3. I'm not using Reverse Proxy but I'm accessing Code-Server over HTTPS with TLS certificate issued an internal CA.

Any help is welcome.
Regards.

@csaska
Copy link

csaska commented Jan 13, 2021

You can setup settings sync without using that button.

What I did was set up settings sync using VS Code, then copied the config for settings sync manually to code-server.

@chilcano
Copy link

Thanks @csaska
I found a workaround. I created a SSH Tunnel from my local computer to remote one which is running Code-Server over HTTPS 8443 port and Settings Sync worked.

ssh -L localhost:54321:192.168.1.59:54321 [email protected]

Code-Server is running on 192.168.1.59:8443.
Regards.

@JeroenBos
Copy link

Duplicate of #1005

@rivernews
Copy link

Thanks @csaska
I found a workaround. I created a SSH Tunnel from my local computer to remote one which is running Code-Server over HTTPS 8443 port and Settings Sync worked.

ssh -L localhost:54321:192.168.1.59:54321 [email protected]

Code-Server is running on 192.168.1.59:8443.
Regards.

For people who are using kubernetes, you can port-forward like below, the "Login in with Github" now works!

kubectl port-forward deployment/code-server-deployment -n code-server 54321

@kimtiago
Copy link

Use this extension, it's working

https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing

@RoSky7791
Copy link

@chilcano Hi

Can you please provide a full tutorial to make this extension work for code-server running behind a reverse proxy ? thanks 🙂

@RoSky7791
Copy link

Use this extension, it's working

https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing

Hi @kimtiago

Is it still working for code-server ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants