运行cmd
添加转发在命令行输入如下:
netsh interface portproxy add v4tov4 listenport=8080 connectaddress=192.168.1.2 connectport=8080
回车后就会将本机的8080端口转发到192.168.1.2这个主机
查看所有端口转发的状态:
netsh interface portproxy show all
删除端口转发:
netsh interface portproxy delete v4tov4 listenport=8080