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
cd /Library/Application Support/VMware Fusion/vmnet8
- Open “nat.conf” with VI (must be superuser mode, sudo)
sudo 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:
3389 = 192.168.104.133:3389[/shell]
HOST_PORT = VM_IPADDRESS:VM_PORT
- Then just restart the VMWare Networking stack and you are done
[shell]sudo /Library/Application Support/VMware Fusion/boot.sh –restart[/shell]