-
Notifications
You must be signed in to change notification settings - Fork 826
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
Access webserver hosted on WSL2 from other devices in same network. #9212
Comments
If you're looking for a quick way (and are familiar with Node.js/npm), simply run |
This is the best option so far from my point of view in comparison to all solutions provided in the different issues around this topic. A) Because the chance is high that your development environment already has Node(.js) installed, even many IDEs require it for some code and spell checks, etc. And B) It is REALLY doing all by itself. Even installing missing dependencies when running the command first time. I just run the command Follow and star the linked project and give your angel on the left shoulder a wave: there is a sponsor link on the project and I would strongly encourage you to click on it. It is really a gift that this is available. It's almost Christmas time ;) |
When I host the webserver from windows with ipv4 as its hostname I was able to access the website
from my mobile devices under the same network. But doing this under wsl2 ubuntu doesn't work.
When I try to run django webserver with the ip assigned to wsl2 instance, I cannot access the webserver
even from same windows device. The webserver is accessible only when it runs on 127.0.0.1 . How can I
access my wsl2 webserver from other devices under same network.
I would be very happy if you could provide me with a solution or even better release this feature on next update.
The text was updated successfully, but these errors were encountered: