panxiaoming

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

 

1、新增映射

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

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

2、删除映射

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

3、查看映射

netsh interface portproxy show all

 

二、参考资料

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

分类:

技术点:

相关文章:

  • 2021-10-08
  • 2021-12-13
  • 2021-08-17
  • 2021-08-17
  • 2021-12-14
  • 2022-01-07
  • 2021-08-17
猜你喜欢
  • 2021-09-18
  • 2018-11-15
  • 2021-09-24
  • 2021-04-15
  • 2021-12-15
  • 2021-06-10
相关资源
相似解决方案