-
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
Single WSL2 localhost port can't be accessed from Windows side #5575
Comments
Open PowerShell and post the output of:
|
|
thanks, tcp dinamic assignation is not the problem then. Try |
No, sadly |
In Resource Monitor -> Network tab- > Listening ports can you see if there is an exe listening on port 3000? |
Thanks for helping! This is a screenshot of the resource monitor view: https://imgur.com/8qTO4Q6 |
Some service is using both ports. To know the service on the same Resource Monitor go to CPU tab -> Services, order by PID and look for PID 4248. |
Thanks a lot for the help. 👍 🙏 It appears that the IP Helper service was the culprit and after disabling it the port worked again. I assume this did not have anything to do with WSL 2 then, therefore I'm closing the issue. |
Just in case it happened to someone else and there were no such ports open during in-windows inspection, but inside WSL port was listened: it helped me simply to restart WSL by |
Restarting WSL was also the solution that I needed! The PS command is still very useful for troubleshooting this though! |
This solved my issue, thank you |
|
Ive tried a bunch of other things, but I had to disable IP Helper service to be able to access my stack on Easy enough, and safe enough to disable the service through GUI least source:
|
This worked for me |
In my case, my port is not allowed. After I add a new rule allowing the port in window firewall, it works. https://pureinfotech.com/open-port-firewall-windows-10/ |
Environment
Steps to reproduce
create-react-app
app:localhost:3000
-> The browser can't connect
PORT=3001 npm start
-> The browser can connect
Further details
I expect that this is due to specific configuration on my machine, but I don't know what is wrong. I disabled Windows Firewall and it still doesn't work. Fast Startup is turned off. Accessing the react app through the ip address + port works as expected. Restarting Windows and WSL 2 (multiple times) did not help.
I assume that this issue is similar to issues #5497 and #5298, but I can access servers that are running on different ports (e.g. 5000, 8080, 3001, etc.).
Any workaround would be appreciated. If possible I would like to not need to get into the insider program again, I am hoping I can stay on the stable 2004 version.
The text was updated successfully, but these errors were encountered: