1、首先安装IPV6(xp下IPV6必须安装,否则端口转发不可用!)
netsh interface ipv6 install
2、添加一个IPV4到IPV4的端口映射
例:netsh interface portproxy add v4tov4 listenport=16688 listenaddress=192.168.2.112 connectport=16688 connectaddress=xxxxxxxxxxx
3、指定监听ip和端口可以删除
netsh interface portproxy delete v4tov4 listenport=16688 listenaddress=192.168.2.112
4、可以查看存在的转发
netsh interface portproxy show all
Tis:防火墙
netsh firewall set portopening TCP 16688 ENABLE
netsh firewall delete portopening protocol=TCP port=16688
时间: 2024-10-27 02:59:01