Code for Coffee Logo

Windows Remote Desktop Connection, VMWare Fusion 5.0, and NAT Forwards

Posted on Jul 3, 2013

Good news, everyone! This still works in VMWare Fusion 6.0!

I decided to put an older Macbook to use for hosting test lab virtual machines; a few of which are running various versions of Windows. After enabling Remote Desktop Connections locally on the virtual machines I made sure to set VMWare Fusion’s network adapter to Bridged (Autodetect). With the built in OS X firewall disabled I should be able to remote into any Windows machine, right? Apparently not! I tried to look around the internet for help since Fusion doesn’t have all of NAT settings forward facing that VMWare Workstation has but came up empty handed with tweaks for Fusion 3 and 4. Well, here is a step-by-step walkthrough on how to allow Remote Desktop through OS X and VMWare Fusion 5.

  1. Install VMWare Fusion 5 and a Windows based operating system on a virtual machine.
  2. Check your virtual machine's IP settings (ipconfig) verify that DHCP is enabled.
  3. Shut down the virtual machine and select Network Adapter > Bridged Networking > Select Autodetect.
  4. Open Mac OS X System Preferences. Select Security and Privacy > Firewall. Enable the firewall and select Firewall Options. Select the VMWare Fusion application and Allow incoming connections. Note: if this machine is in your network's DMZ, you should highly consider enabling stealth mode.
  5. Now, we need to direct Remote Desktop Connections to VMWare. From your Mac (or via an SSH connection), browse to: /Library/Preferences/VMWare Fusion/
  6. Open the networking file: sudo vi networking. For an example of what the file should look like, here is a link to the Library/Preferences/VMWare Fusion/networking file on pastebin.
  7. Look for the [incomingtcp] section. If you do not find one, create one.
  8. Add the following rule underneath: 3389=yourmacsipaddress:3389 (tip: Insert will allow you to edit lines, :quit or :exit will close vi).
  9. Restart VMWare Fusion and launch your virtual machine. From your client machine, you'll want to connect via Remote Desktop Client to the static IP you set your virtual machine to. Enter in the virtual machine's credentials and you're in.
  10. That's it! You can now use the Windows RDC on various virtual machines hosted on your Mac as long as you give them each specific, static IPs.

Hope this helps. If you have any questions or comments feel free to post them.

  • Updated 11/29/13: This continues to work in VMWare Fusion 6.0.
  • Update 12/14/13: Added link to pastebin of the networking file.

</em>

Comments