使用Windows的netsh转发端口

监听外网113.107.161.30端口111111,转发到192.168.161.30端口2433

netsh interface portproxy add v4tov4 listenaddress=113.107.161.30 listenport=11111 connectaddress=192.168.161.30 connectport=2433

查看转发规则

netsh interface portproxy show v4tov4

删除转发规则

netsh interface portproxy delete v4tov4 listenaddress=113.107.161.30 listenport=11111

使用Windows的netsh转发端口

上一篇:Delphi TreeView – 自动展开树形结构


下一篇:C# Random类的正确应用