-
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
HTTP Server on WSL not accessible on W11 #9203
Comments
I should also state that I disabled fast startup without success, and I would like NOT to rewrite my hosts files, which seems to be kind-of-working solutions that I have found online. Juste running the PS1 script mentioned above is already a pain in the ass, my computer having to restart everyday. And yes, I know I can create sort of a CRON task to run it, but the thing is, I shouldn't have to, since it was working 2 days prior. |
May be you need to reset your port proxy. I faced similar problem of not being able to access my |
Hi, sorry for the late reply, been a busy week-end. @AbhinasRegmi nope, did not work. Ran the command in Powershell, and restarted my WSL machine as well as my Windows machine, still getting the issue. |
It's even worse now, I cannot access my app anymore, even with the PS1 script mentioned above. How do you revert this command ? EDIT : OK nevermind I got it back by restarting the WSL machine again |
Update : for some reason I started to work again after another restart of my computer. I suspect your command did the trick @AbhinasRegmi, it just had to be restarted twice (don't ask me why because I absolutely have no idea ...) Thank you for the trick anyways ! |
Version
Microsoft Windows [version 10.0.22000.1219]
WSL Version
Kernel Version
5.10.16
Distro Version
Release: 20.04
Other Software
Repro Steps
npx @angular/cli@12.2.18 new testproj
cd testproj
npm start
In a browser on Windows, go to
http://localhost:4200
If page displays, no issue. If page not found, issue.
Expected Behavior
I would like to be able to access HTTP servers ran on WSL from my Windows OS.
Actual Behavior
I have to do major tweaks to make it work out of the box.
Diagnostic Logs
Up until 2 days ago, everything was working fine. I had no issue accessing the page.
But from nowhere, it started not working.
Now I have to run a custom script to create NAT/PAT/Firewall rules on Powershell :
And once this script is ran, I have to run the following command to make it work :
The issue started to appear really out of nowhere, the last WSL command I ran before getting the issue was
Between the no issue and issue state, no update has been made, the computer or the WSL has not been restarted, it just happened out of the blue with no reason.
The text was updated successfully, but these errors were encountered: