Warning: mkdir(): No such file or directory in /www/wwwroot/news.ynwlzc.cn/index.php on line 31
Warning: mkdir(): No such file or directory in /www/wwwroot/news.ynwlzc.cn/index.php on line 35
Warning: file_put_contents(/www/wwwroot/news.ynwlzc.cn/log_userwlzc/2026/09/14/216.73.216.163_visit.csv): failed to open stream: No such file or directory in /www/wwwroot/news.ynwlzc.cn/index.php on line 54
Warning: file_put_contents(/www/wwwroot/news.ynwlzc.cn/log_userwlzc/2026/09/14/216.73.216.1632026_09_14_loginvisit.csv): failed to open stream: No such file or directory in /www/wwwroot/news.ynwlzc.cn/index.php on line 90
下面的代码在windows下运行后可以讲172.20.53.1的14941端口转发到172.20.53.2的3389端口上
netsh interface ipv6 install
netsh interface portproxy add v4tov4 listenaddress=172.20.53.1 listenport=14941 connectaddress=172.20.53.2 connectport=3389
如果要取消上面的端口转发,使用下面的代码
netsh interface portproxy delete v4tov4 listenaddress=172.20.53.1 listenport=14941
如果想查看已经配置了哪些端口转发,可以用如下语句:
netsh interface portproxy show v4tov4
以上所述就是本文的全部内容了,希望大家能够喜欢。