80后的细娃儿

win7自带端口转发

设置端口转发:
netsh interface portproxy
add v4tov4 listenport=55900 listenaddress=192.168.0.220 connectport=5900 connectaddress=192.168.0.240
add v4tov4 listenport=55901 listenaddress=192.168.0.220 connectport=5900 connectaddress=192.168.0.250
删除端口转发
netsh interface portproxy del v4tov4 listenport=55900 listenaddress=192.168.0.220
netsh interface portproxy del v4tov4 listenport=55901 listenaddress=192.168.0.220
查看端口状态
netstat -ano|find “55900”
netstat -ano|find “55901”

点赞