question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

8reactions
chilcanocommented, Jan 13, 2021

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 chilcano@192.168.1.59

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

1reaction
rivernewscommented, Jul 18, 2021

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 chilcano@192.168.1.59

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't establish connection to localhost | Firefox Support Forum
Upon trying to connect to this server via Firefox I'm presented with "Firefox can't establish a connection to the server at 127.0.0.1:8000.
Read more >
Message: Firefox can't establish a connection to the server
Firefox can't establish a connection to the server at app.getresponse.com. The site could be temporarily unavailable or too busy. Try again in a ......
Read more >
How to fix Unable to Connect Firefox can't establish ... - YouTube
How to fix Unable to Connect | Firefox can't establish a connection to the server error in Mozilla Firefox web browser.
Read more >
firefox can't establish a connection to the server - YouTube
firefox can't establish a connection to the server. ... try restarting your device. Your browser can't play this video.
Read more >
Firefox can't establish a connection to the server at ws ...
Check the log of you nodejs command prompt. To fix this just modify var connection = new WebSocket('ws://localhost:8080/');.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found