添加端口转发
[ol]netsh interface portproxy add v4tov4 listenaddress=192.168.2.1 listenport=8080 connectaddress=192.168.2.2 connectport=8080[/ol]复制代码
查看端口转发
[ol]netsh interface portproxy show all[/ol]复制代码
删除端口转发
[ol]netsh interface portproxy delete v4tov4 listenaddress=192.168.2.1 listenport=8080[/ol]复制代码
如果端口转发未生效,去windows的服务管理那启用IP Helper这个服务