Skip to content
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

Client can't connect to server in WSL environment #91

Open
MaksimMyshkin opened this issue Jul 8, 2020 · 2 comments
Open

Client can't connect to server in WSL environment #91

MaksimMyshkin opened this issue Jul 8, 2020 · 2 comments

Comments

@MaksimMyshkin
Copy link

MaksimMyshkin commented Jul 8, 2020

Environment: Windows 10 with WSL2. codecrumbs installed in WSL2 OS.

How to reproduce:

  • start codecrumbs in wsl console
  • open browser and go to localhost:2018 (in Windows)
    After that client just hanging out. Console contains the message: "WebSocket connection to 'ws://127.0.0.1:3018/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED".

How to solve:
It's need to just use localhost in url instead of 127.0.0.1. Otherwise ports from WSL are not accessible.

@Bogdan-Lyashenko
Copy link
Owner

Hey, thanks for the report. Do you think you would be able to create a PR? Appreciate it.

@MaksimMyshkin
Copy link
Author

Ok. I will try when I will have a time. Looks like an easy fix.

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

2 participants