RDP TO Hyper-V machines externally

Posted on 2014-08-06
Last Modified: 2014-11-12
I would like to know how I can RDP to different machine on the same LAN form externally. I have several VM's on my windows 8 Machines I then have several  users that I would like to connect to their individual machines externally but I'm not sure how I achieve this. I can connect to the physical box using RDP as I have opened 3389 which prt forwards to that machine but how can I do the same for the other machines?
Question by:AJ1978
    LVL 14

    Accepted Solution

    you need to forward a new port for each machine 3389 port like this

    your.external.ip.address:3389 --> windows8.hyperv.machine.ip:3389
    your.external.ip.address:3390 --> machine1.ip.address:3389
    your.external.ip.address:3391 --> machine2.ip.address:3389
    your.external.ip.address:3392 --> machine3.ip.address:3389
    your.external.ip.address:3393 --> machine4.ip.address:3389

    then the clients need to use the ports to connect to their machines so instead of just address they need to type in the port to connect. so 1 user will be connecting to the port 3390, another one to 3391 etc

    the VM machines need to be in the same network as the windows8 machine so you need to setup the networking on the hyperv and the vmachines correctly first.

    Author Comment

    Hi TheRuck Thanks you for your swift reply, I will give this a go later today. Could you tell me how I change the port number in the registry for windows 7 & 8? Also would you mind telling me how many ports I can use? 3389 through to?
    LVL 14

    Expert Comment

    you do not need to change the port on the windows you just set the port 3390 from the router to forward the default port 3389 on the machine
    you can theoretically forward 65534 ports
    LVL 87

    Assisted Solution

    Usually it is easier to either have a "Gateway" PC running in the remote LAN to which you connect to remotely first, and then via that session you connect to the other PC's. Or if there is a Windows 2008 or above server at the remote location, you can install the RDS gateway role. Another option would be to use a VPN to connect to the remote sit to first (VPN's are included with some routers, or it is a further feature you can add on a 2008 server and above).

    Either of those options would make it simpler, as you wouldn't have to forward ports for every PC in the router (and that additionally reduces the security).

    Author Comment

    So If I'm understanding you correctly all I would do is assign a static IP to each of the VM's machines and port forward on the router to that IP of each specific .

    An Example: your.external.ip.address:3391 --> machine2.ip.address:3389 and when the user wants to connect they just user the ipaddress:port number is allocated to them?

    LVL 14

    Expert Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
    Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now