1、以管理员身份运行 powershell 2、在 powershell 中执行命令,获取虚拟机内ubuntu的ip地址 wsl -- ifconfig eth0 3、查看当前已配置的端口转发规则: netsh interface portproxy show all 删除规则时,只需指定 li