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:
- Directly connecting to the IP address assigned to Ethernet adapter vEthernet (WSL) -> 172.26.208.1:3000
- Directly connecting to the host machine's IPv4 address -> 192.168.0.115
- Adding a firewall exception (using Bitdefender)
- Binding the IPs above
rails s -b 172.26.208.1 -p 3000
None of the above have worked thus far... What I'd like to do is:
- Test the website on another laptop/tablet/phone
- Use VScode from another computer
Is there anything I'm missing to at least see the website correctly? (and any comments on the VScode part would be appreciated)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…