-
Notifications
You must be signed in to change notification settings - Fork 822
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
Can't connect to local server started in WSL2 from Windows #5018
Comments
Hello, This is configured to only Listen in the local interface: tcp://127.0.0.1:3000. Configure it to listen in all interfaces, something like tcp://0.0.0.0:3000 Regards, |
Hi @crramirez . Thanks for you reply, I tried this, but unfortunatey I'm getting the same result: |
Ok I am out of ideas |
Other half is the IP address on the client. Once you are listening on |
I somehow managed to get it working again. Steps I carried out that resolved the issue:
No idea what of the above caused the issue to go away, but it seems to be working now. |
I only run Thank you! |
Windows updated yesterday, had similar issue.
|
Your Windows build number: Version 10.0.19041.172
What you're doing and what's happening:
I'm unable to connect to a rails server started in my WSL2 instance of Ubuntu. The server starts as expected and is able to receive requests from ubuntu:
However when trying to access via windows, I get a ERR_CON_REFUSED error:
Issue doesn't seem to apply to port 80, for example, running "sudo nc -l 80" and then making a request from windows browser results in ubuntu receiving the request:
This issue also occurs when starting mailcatcher on port 1080, I'm unable to access mailcatcher from a windows browser event though it is accessible from within ubuntu:
Mailcatcher in Links:
Trying to connect in Chrome on Windows:
This was working up until yesterday evening, however has now stopped working. I also updated my windows install to KB4552455 earlier in the day yesterday, but am unsure whether this is related or not.
The text was updated successfully, but these errors were encountered: