添加端口转发
参数说明
v4tov4
指IPv4转发listenaddress
listenport
监听的本地端口connectaddress
转发的远程地址connectport
👇 访问本地127.0.0.1:3306
会自动转发到远程192.168.10.1:3306
netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=3306 connectaddress=192.168.10.60 connectport=3306
查看系统所有端口转发
netsh interface portproxy show all
删除端口转发
netsh interface portproxy delete v4tov4 listenport=3306