Create WSL2 Bridged Network with Hyper-V and IPv6 Support
I don't know what happened, I used to be able to access services in WSL2 directly from the host using localhost:port
, but suddenly it doesn't work today. Taking this opportunity, I'll create a virtual network card based on the documentation I read recently to set up a WSL2 bridge, which will not only support IPv6 but also allow direct access to my WSL2 services in the local network without the need for port forwarding. Since my WSL2 is not sandboxed anyway, I'm not too concerned about security xD.