Windows · 2024-11-04

win10端口转发

在命令窗体中输入:netsh interface portproxy add v4tov4 listenaddress=192.168.0.101 listenport=7001 connectaddress=192.168.0.80 connectport=8080

查看转发情况:netsh interface portproxy show all

如果要删除端口转发规则,输入:netsh interface portproxy delete v4tov4 listenaddress=192.168.0.101 listenport=7001


删除后,用 netsh interface portproxy show all 命令查看,如果发现转发的端口不在,证明删除成功