Implementing port forwarding for Windows platforms

Source: Internet
Author: User

Statement

The Stars last night

Blog:http://yestreenstars.blog.51cto.com/

This article by oneself creation, if need reprint, please indicate source, thank cooperation!

Objective

Implementing port forwarding for Windows platforms

Configuration

First time use to install IPv6 (measured 2008 does not need this step, 2003 required)

netsh interface ipv6 install


Add rule

netsh interface portproxy add v4tov4 listenaddress=ip1 listenport=port1 connectaddress=ip2 connectport=port2

Note:

    1. ListenAddress (optional): If you do not fill in the listener all the network card, if you want to specify which network card to listen for, you need to listen to the network card corresponding IP address, you can listen to the private network IP, you can also monitor the public network IP.

    2. Listenport (required): Fill in the ports you need to listen to.

    3. Connectaddress (required): you need to forward to which IP to fill in which IP.

    4. Connectport (required): you need to forward to which port you want to forward to (not necessarily the same as Listenport).



View Rules

netsh interface portproxy show v4tov4



Delete Rule

netsh interface portproxy delete v4tov4 listenaddress=ip listenport=port

Note: You only need to specify the local listening address and port.

This article is from the "Last Night Stars" blog, please make sure to keep this source http://yestreenstars.blog.51cto.com/1836303/1716404

Implementing port forwarding for Windows platforms

Related Article

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.