code-settings-sync icon indicating copy to clipboard operation
code-settings-sync copied to clipboard

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

Open vectorrilke opened this issue 5 years ago • 10 comments

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.

  • [x] Windows 10 ver. 2004
  • [x] latest VS Code etc.

vectorrilke avatar Jul 18 '20 12:07 vectorrilke

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

csaska avatar Nov 23 '20 12:11 csaska

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

jasoncoleusa avatar Nov 28 '20 17:11 jasoncoleusa

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.

chilcano avatar Jan 13 '21 15:01 chilcano

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.

csaska avatar Jan 13 '21 15:01 csaska

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.

chilcano avatar Jan 13 '21 15:01 chilcano

Duplicate of #1005

JeroenBos avatar Apr 09 '21 12:04 JeroenBos

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

rivernews avatar Jul 18 '21 19:07 rivernews

Use this extension, it's working

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

kimtiago avatar Aug 10 '23 05:08 kimtiago