-
Notifications
You must be signed in to change notification settings - Fork 5
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
Due to an open issue with wsl, testrunner is not reachable in LAN #83
Comments
@mlasak it is possible to replace Node.js proxy with something else like NGINX? |
@louaybassbouss yes, any proxy should work. NGINX as well. However, it must be running directly on host system. |
Don't forget that the documentation needs to be updated somewhere to describe this. |
@jpiesing a proxy is imo only a hack/workaround and should only be used in case of desperation. As well, it turns out, that it really depends on your local network setup and security measures (like firewalls, DNS rebind protection, etc). The question is how far a documentation should go and what level of knowledge can be expected from person setting up the test runner? I have a running setup on
And yes, we will share/update documentation on this |
@mlasak IMHO we should provide limited documentation on using Windows + WSL2 without Docker Desktop. Does this sound reasonable? |
Yes, sounds good. pls close this issue @FritzHeiden once the doc has been updated. Such a documentation should simply point to relevant further sources, like https://learn.microsoft.com/en-us/windows/wsl/networking Forwarding the traffic from Win -> wsl2 -> test runner in docker requires imo powershell: netsh.exe interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=(wsl hostname -I)
netsh.exe interface portproxy add v4tov4 listenport=8443 listenaddress=0.0.0.0 connectport=8443 connectaddress=(wsl hostname -I)
netsh.exe interface portproxy add v6tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=(wsl hostname -I)
netsh.exe interface portproxy add v6tov4 listenport=8443 listenaddress=0.0.0.0 connectport=8443 connectaddress=(wsl hostname -I) docker-compose.yml: network_mode: "host" Due to the fact that the same setup i tested yesterday in a corporate network in London, today simply work in my home network in Berlin without any additional proxy, i'm fine to close this issue right away. Nothing changed except networking. Recommend to add info to doc: If you face connectivity issues then please check that firewall, DNS-rebind protection and other network related topics do not block connectivity between your local devices (DUT, test runner host, smartphone) |
microsoft/WSL#4983
open since 2020. only workaround for now is to start test runner without ssl and use a simple proxy on windows host machine to terminate ssl there.
example:
whereas the "172.31.146.167" address should be replaced with the one you have on your setup:
outside wsl call:
The text was updated successfully, but these errors were encountered: