I run a lot of computers as virtual machines under Hyper-V. Occasionally, it’s nice to be able to provide someone outside of my local network access to my Hyper-V server or a guest VM on the Hyper-V host. We can do this by enabling RDP, or Remote Desktop Protocol.
In part one I’ll discuss how to set this up internally, assuming your Hyper-V host computer is behind a firewall.
To enable RDP access your Hyper-V host and all VMs on this machine, then you need to do four things:
- 1. Make sure that this machine has access to the Internet, preferably via NAT over your firewall/router
2. Make note of the IP address for the Hyper-V host computer
3. Enable remote connections in the System Properties dialog box, on the Remote tab. (fig. 1)
4. Enable RDP to this computer in Windows Firewall with Advanced Security (fig. 2)
Fig. 1:

Fig. 2:

To enable RDP to the Hyper-V host, open Windows Firewall with Advanced Security, then in Inbound Rules, make sure that Remote Desktop (TCP-In) is enabled.
To enable RDP to a guest VM, you need to do the same thing: make sure that the computer can access the network (this can usually be accomplished by assigning one of the virtual networks configured for the VM to the External network), make note of the IP address for the VM, and finally enabling the RDP protocol on the firewall for the VM.
At this point, you should be able to connect to the Hyper-V host and any VMs that have a valid IP address for your local area network. Test it to verify.
Posted Sunday, January 31st, 2010 at 10:25 pm by aaronc
1,091 views