码迷,mamicode.com
首页 > 其他好文 > 详细

通过外网访问内网服务器

时间:2017-04-19 00:40:11      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:ctp   资料   服务器   htm   int   端口   address   公网   ace   

一、可以通过netsh在外网服务器添加端口映射来实现。

 

1、新增映射

netsh interface portproxy add v4tov4 listenaddress=公网IP listenport=侦听端口号

connectaddress=内网IP connectport=链接到的端口号

2、删除映射

netsh interface portproxy add v4tov4 listenaddress=公网IP listenport=侦听端口号

3、查看映射

netsh interface portproxy show all

 

二、参考资料

https://help.aliyun.com/document_detail/43850.html?spm=5176.7738718.2.1.KGogtD

通过外网访问内网服务器

标签:ctp   资料   服务器   htm   int   端口   address   公网   ace   

原文地址:http://www.cnblogs.com/panxiaoming/p/6731192.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!