Win上端口转发

查看有哪些端口设置呢转发

netsh interface portproxy show v4tov4

将本机(192.168.0.201)9600端口 , 转发到 (192.168.0.221)6524端口

netsh interface portproxy add v4tov4 listenaddress=192.168.0.201 listenport=9600 connectaddress=192.168.0.221 connectport=6524

删除“端口映射”

netsh interface portproxy delete v4tov4 listenaddress=192.168.0.201 listenport=9600