How can I access host in WSL?

Introduction Just my experience for visiting my host(or the services on my host) in a WSL. Differences between WSL1 and WSL2 My Environment A mac mini as server, 192.168.0.104/48 A windows11 laptop, 192.168.0.105/48 A ubuntu WSL1 on the laptop A debian WSL2 on the laptop WSL1 WSL1 uses a “bridged network apapter”, which means that it will make it bridged to the host Network Interface Card (NIC) resulting in a unique IP address that will change on restart. So you can access your host by localhost. ...

March 12, 2023 · 3 min · ChaosNyaruko