1、添加端口转发
netsh interface portproxy add v4tov4 listenport=10001 listenaddress=192.168.1.100 connectport=10001 connectaddress=192.168.1.105
2、删除端口转发
netsh interface portproxy del v4tov4 listenport=10001 listenaddress=192.168.1.100
3、查看已存在的端口映射
netsh interface portproxy show v4tov4
4、查看端口是否已在监听
netstat -ano|findstr 10001
5、测试端口是否连通
telnet 192.168.1.100 10001