Windows 10 端口转发
添加端口转发
netsh interface portproxy add v4tov4 listenport=2181 listenaddress=192.168.102.178 connectport=2181 connectaddress=192.168.37.128
netsh interface portproxy add v4tov4 listenport=9092 listenaddress=192.168.102.178 connectport=9092 connectaddress=192.168.37.128
netsh interface portproxy add v4tov4 listenport=9200 listenaddress=192.168.102.178 connectport=9200 connectaddress=192.168.37.128
查看已存在的端口映射
netsh interface portproxy show v4tov4
删除端口转发
netsh interface portproxy del v4tov4 listenport=2181 listenaddress=192.168.102.178
可以通过命令 netstat -ano|find 4000 查看端口是否已在监听
分类: IT杂谈 5,017 次阅读
原文链接:http://www.wenhq.com/article/view_1013.html欢迎转载,请注明出处:亲亲宝宝