In order to expose WLS2 port to the network, for instance for development purposes, you need to run 2 steps in a Windows console (not inside WSL2) as administrator.
First we need to get the WSL host IP:
wsl hostname -I
Grab the first IP address i.e. 172.26.90.110
and use it to expose the port, i.e. 8080
(replace by yours):
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=8080 connectaddress=172.26.90.110
That’s all folks!