Pass ports on to WSL2

In a PowerShell with administrative rights, execute:

netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=$(wsl hostname -I | wsl tr -d [:space:])

Here we’re adding a port forward for connections that come in on any interface on port 80 and passing them to the IP address of the default WSL2 instance.