1.管理员打开cmd
listenaddress是win10本地IP地址,0.0.0.0代表所有IP
listenport是win10本地端口
connectaddress是被转发的远端IP地址
connectport是被转发的远端端口
netsh interface portproxy add v4tov4 listenport=3307 listenaddress=0.0.0.0 connectaddress=192.168.1.3 connectport=3307
2.查看建立的端口转发规则
netsh interface portproxy show all