Our great sponsors
-
wsl_portproxy
Puts wsl on the public internet by running a netsh portproxy command through an admin powershell, all within wsl.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I see. First I'm going to try this, https://github.com/microsoft/WSL/discussions/7395 which should allow me to add an actual NAT to windows https://github.com/microsoft/WSL/issues/5835 (as Get-NetNat returns nothing in powershell). If that doesn't work, I'll try earlier next week your debug way and see what happens.
It got pedantic doing this manually between terminals when I have to reset WSL, so I wrote myself a script to do it: https://github.com/toxyy/wsl_portproxy
So, then your options are: 1) a real HTTP (reverse) proxy like Apache or nginx on Windows, 2) changing your VM network to bridge mode and manually configuring an address every time you start WSL2 (https://stackoverflow.com/a/62438375 , see "option 2"), or maybe 3) https://github.com/CzBiX/WSLHostPatcher this thing