Code-settings-sync: Firefox can't establish a connection to the server at localhost:54321.

Created on 18 Jul 2020  路  6Comments  路  Source: shanalikhan/code-settings-sync

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.

Most helpful comment

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.

All 6 comments

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 I'm having this issue as well. It's with code-server that's running in gCloud.

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.

  4. Any help is welcome.
    Regards.

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.

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.

Duplicate of #1005

Was this page helpful?
0 / 5 - 0 ratings

Related issues

axetroy picture axetroy  路  4Comments

larrym picture larrym  路  4Comments

dawsbot picture dawsbot  路  5Comments

UTexas80 picture UTexas80  路  5Comments

mjbvz picture mjbvz  路  5Comments