I recently had a need to access my virtual machine in VMWare Fusion through the Windows Remote Desktop (RDP, port 3389). I needed to also keep the NAT setup rather than bridging my virtual machine directly to the network.
Thanks to this guy, I was able to configure the VMWare NAT configuration to listen to the specific port on the host machine’s network adapter and forward to the specific port on the virtual machine.
Here is how I did it:
- Open Terminal
- Navigation to the “vmnet8” directory
Shell1cd /Library/Application Support/VMware Fusion/vmnet8
- Open “nat.conf” with VI (must be superuser mode, sudo)
Shell1sudo vi nat.conf
- Using the arrow keys, move the cursor to the line after “[incomingtcp]”
- To edit the document, hit : o (colon, then the letter O)
- Enter the port and IP information like the following:
Shell12[incomingtcp]3389 = 192.168.104.133:3389
HOST_PORT = VM_IPADDRESS:VM_PORT
- Then just restart the VMWare Networking stack and you are done
Shell1sudo /Library/Application Support/VMware Fusion/boot.sh --restart