Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to realize Windows Port forwarding

Shulou Source: shulou.com Published: 2022-06-01 02:48:16 10月06日 Update

This article is about how to achieve Windows port forwarding, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Run the following code under the console to forward port 14941 of 172.20.53.1 to port 3389 of 172.20.53.2.

The code is as follows:

Netsh interface ipv6 install

Netsh interface portproxy add v4tov4 listenaddress=172.20.53.1 listenport=14941 connectaddress=172.20.53.2 connectport=3389

If you want to cancel port forwarding above, use the following code

The code is as follows:

Netsh interface portproxy delete v4tov4 listenaddress=172.20.53.1 listenport=14941

If you want to see which ports are configured for forwarding, you can use the following statement:

The code is as follows:

Netsh interface portproxy show v4tov4

The above is how to achieve Windows port forwarding, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Port code more knowledge article face practical previous generation that is work meeting article look knowledge point industry details sentence information channel follow part Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Technology Xiaomi vpn Shulou Information