Connecting to VMware virtual machines using the Windows Remote Desktop utility fails
search cancel

Connecting to VMware virtual machines using the Windows Remote Desktop utility fails

book

Article ID: 310849

calendar_today

Updated On:

Products

VMware VMware Desktop Hypervisor

Issue/Introduction

  • Connecting to VMware virtual machines running Windows operating systems using the Windows Remote Desktop Protocol (RDP) utility fails.
  • Remote connections to virtual machine are not working as expected.
  • Connection terminated or access denied messages display when attempting to RDP into a Windows virtual machine.
  • RDP fails to connect.
  • You are unable to access a virtual machine remotely.

Environment

  • VMware Workstation 7.x (Linux)
  • VMware Workstation 6.x (Windows)
  • VMware Player 4.x (Linux)
  • VMware Player 7.x (Linux)
  • VMware Player 3.x (Windows )
  • VMware Workstation Pro 15.x (Linux)
  • VMware Player 6.x (Windows)
  • VMware Player 7.x (Windows)
  • VMware Player 5.x (Windows)
  • VMware Workstation 6.x (Linux)
  • VMware Player 5.x (Linux)
  • VMware Player Pro 7.x (Windows)
  • VMware Player 2.x (Windows)
  • VMware Workstation 5.x (Linux)
  • VMware Workstation 7.x (Windows)
  • VMware Workstation Player 15.x (Linux)
  • VMware Workstation 9.x (Linux)
  • VMware Workstation 11.x (for Linux)
  • VMware Workstation 11.x (for Windows)
  • VMware Workstation 5.x (Windows)
  • VMware Workstation 8.x (Linux)
  • VMware Player 6.x (Linux)
  • VMware Workstation Pro 15.x (Windows)
  • VMware Player Pro 7.x (Linux)
  • VMware Player 3.x (Linux)
  • VMware Player 2.x (Linux)
  • VMware Workstation Player 15.x (Windows)
  • VMware Server 2.0.x (Windows)
  • VMware Workstation 10.x (Windows)
  • VMware Workstation Player 12.x (Windows)
  • VMware Workstation 10.x (Linux)
  • VMware Player 4.x (Windows)
  • VMware Workstation Player 12.x (Linux)
  • VMware Workstation 9.x (Windows)
  • VMware Workstation 8.x (Windows)

Resolution

As the Windows operating system installed inside of a VMware virtual machine behaves in the same way as it would if it were installed on a physical machine, you can connect to the Windows operating system remotely using the Windows RDP utility.

To connect to your virtual machines via RDP, you need to ensure that your virtual machine is configured correctly and is accessible on your physical network. Your virtual machine must be connected to your physical network via either a Bridged or a NAT connection.

Note: Configuring a virtual machine to have its network adapter to be a bridged connection basically instructs the virtual machine to use the host operating system's network card as if it were its own network card. This also means that the virtual machine gets an IP address based on the host network's settings.

To configure your virtual machine with a bridged connection:

  1. Open the virtual machine settings window from within your installation of VMware Workstation, VMware Server, or VMware Player by clicking VM > Settings.
  2. In the hardware tab, highlight the network adapter and ensure that the bridged network connection checkbox is selected.

To configure your virtual machine with a NAT connection:

  1. Open the virtual machine settings window from within your installation of VMware Workstation, VMware Server or VMware Player by clicking VM > Settings.
  2. In the hardware tab, highlight the network adapter and ensure that the NAT connection checkbox is selected.
To configure port forwarding on the NAT connection for your virtual machine:
 
Note: The NAT Settings options are not available for Linux hosts. This procedure is applicable only to Windows hosts running VMware Workstation.
  1. In the Workstation toolbar, click Edit > Virtual Network Editor to open the virtual network editor.
  2. Select the network adapter that is set to the NAT interface, By default, this is VMnet8.
  3. Click the NAT Settings button.
  4. Click the Add button within the NAT Settings dialog box.
  5. In the Map Incoming Port dialog box, fill in these details:
     
    • The host port needs to be an unused port. For example, you can use port 9997.
    • The virtual machine port needs to be 3389, unless you have changed it.
    • The virtual machine IP address needs to be the IP address assigned to the virtual machine you wish to connect to NAT connection.
  6. Click OK.

Similar to a physical environment, you need to configure the Windows operating system before you can use RDP. For instructions on how to configure your Windows operating system for use with RDP, see your operating system user manual or the Microsoft Support Site.

Additional Information

Computers trying to connect to the virtual machine will have issues connecting to the Windows virtual machine with NAT port forwarding, if the firewall on the host is turned ON.