I'm developing a rails app using WSL2/Ubuntu on my Windows 10 machine, which is great! The problem is I can't connect to my server from another computer in the same network.
For further clarity, I am running a Puma server on localhost:3000
I have tried the following:
rails s -b 172.26.208.1 -p 3000
None of the above have worked thus far... What I'd like to do is:
Is there anything I'm missing to at least see the website correctly? (and any comments on the VScode part would be appreciated)
See this video, it helped me:
https://www.youtube.com/watch?v=yCK3easuYm4
netsh interface portproxy add v4tov4 listenport=<port-to-listen> listenaddress=0.0.0.0 connectport=<port-to-forward> connectaddress=<forward-to-this-IP-address>
for example
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.30.16.3
Dont forget to put feedback after.