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

Connecting to local website from another computer on network #5960

Closed
agarwalvaibhav0211 opened this issue Sep 21, 2020 · 3 comments
Closed

Comments

@agarwalvaibhav0211
Copy link

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.488]
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020 
On Running wsl -l -v on powershell, it says version is 2

I want to access a website hosted on my wsl. I am using nginx server. For testing purpose I was trying to navigate to the default nginx landing page.

Steps to reproduce

  1. Enable the network as home network in my firewall settings.
  2. Run ipconfig on command prompt.
  3. Navigate to the ip address given under IPv4 address from another computer on network.

WSL logs:

Expected behavior

The Nginx landing page will load

Actual behavior

ERR_CONNECTION_REFUSED error occurs.
I tried the same steps with docker and navigated to their ports and that's working.

@ad-on-is
Copy link

This is a known issue. If you want to achieve that, you'll have to install Docker Desktop, enable it for WSL2 and run your services (nginx, whatever) inside a Docker Container.

@therealkenc
Copy link
Collaborator

/dupe #4150

@ghost
Copy link

ghost commented Sep 21, 2020

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants