Hyper-V Port mappings

Source: Internet
Author: User

Sometimes in order to let local area network or extranet users directly access or access the virtual machine services, the real port can be directly mapped to Hyper-V virtual machine inside, save a lot of trouble.

Here are some common commands for Hyper-V shared IP port mapping
Shared IP port mapping some common commands
First, the query port mapping situation
netsh interface portproxy show v4tov4
Query all port mappings for this IP.
netsh interface portproxy show v4tov4|find "192.168.1.1"
Second, add a port mapping
netsh interface portproxy add v4tov4 listenport= extranet port listenaddress= primary IP connectaddress= private IP connectport= Private IP port
For example:
netsh interface portproxy add v4tov4 listenport=8888 listenaddress=118.123.13.180 connectaddress=192.168.1.10 connectport=2222
Third, remove a port mapping
netsh interface portproxy delete v4tov4 listenaddress= primary IP listenport= External network port

Hyper-V Port mappings

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.