用管理员权限打开powershell或者cmd,命令如下
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=主机对外端口 connectaddress=虚拟机ip connectport=虚拟机服务启动端口
查看设置
netsh interface portproxy show all
删除配置
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=88