Using the NAT feature of Windows

Source: Internet
Author: User

Open the command-line console with Administrator privileges .

port Mapping related commands

To view the Port proxy table for the current machine:

netsh interface portproxy show all

C:\windows\system32>netsh Interface portproxy Show All

Listen IPv4: Connect to IPv4:

Address Port Address Port

--------------- ----------  --------------- ----------

172.16.11.68 1883 192.168.11.50 1883

172.16.11.68 80 192.168.11.12 80

To add a port mapping:

netsh interface portproxy add v4tov4 listenaddress=192.168.11.68 listenport=1883 connectaddress=192.168.11.50 connectport=1883

To delete a port mapping:

netsh interface portproxy delete v4tov4 listenaddress=192.168.11.68 listenport=1883

The above commands are used in my development and the system is WIN8 upgraded WIN10. Other versions of Windows have not been tried.

Using the NAT feature of Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.