Last Updated: April 24, 2016
·
173
· lei

howto map port on vmware fusion

open the configuration file with your prefer editor (VMWare shouldn’t be running while you do this):

sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf

Go down in the file, there should be a section like:

[incomingtcp]

# Use these with care - anyone can enter into your VM through these...
# The format and example are as follows:
#<external port number> = <VM's IP address>:<VM's port number>
#6001 = 172.16.3.0:6001

Uncomment that last line, and edit as appropriate.
Couple of notes:
These instructions are for TCP port forwarding, there’s a corresponding [incomingudp]section for UDP
If for some reason this section doesn’t already exist, just add it