When I'm using my Windows Subsystem for Linux (WSL) environment from VS Code I am unable to connect to the server from my phone despite being connected to the same wifi network and entering the ip address and port.
When I'm working from my normal windows environment (without being on the WSL) the extension works perfectly and I can open my project from my phone with no problems; connecting to the server by entering the ip address and port. However, when I'm on the WSL it doesn't work.
These are the steps I do to open my project from my phone:
ip addr
command.When I am in my normal windows environment (not in WSL) I still follow the above 4 steps and everything works perfectly and I can connect to my project from my phone without problems, however when I am from my WSL environment despite following the same four steps and entering the same ip address and the same port, the project does not load for me; as if the server was down.
Sorry for taking so long to reply. Thanks to the help of the platzi community I managed to solve my little problem and I forgot to update the question here indicating how I had solved it.
I don't know if @Mateo's solution works, but in my case what I did to solve the problem was to follow the steps indicated in this post https://medium.com/codemonday/access-wsl-localhost-from-lan-for-mobile-testing-8635697f008
Just in case, I'll explicitly write here the steps I followed to solve the problem (they're the same on the blog, but I'll write them here in a more "explicit" way):
And voila, it worked.