在powershell中执行,获取ubuntu内的ip地址
wsl ifconfig eth0
将ip地址的对应的端口映射到宿主win10对应的端口
netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=192.168.xxx.xx
查看所有映射
netsh interface portproxy show all
删除映射
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=80