I always forget how to do this yet need it for my ideal dev environment. Just found a video/short explanation which shows you how to to it:
Quoting the video:
"""
Jose Luis Loya Cabrera wrote: 1.- Check for the ip address of the VM machine.
•--a) Assuming that your VM machine is linux. You can get that ip by just writing "ifconfig" in your vm_machine terminal.2.- Open the Terminal.app3.- Write in the command line:
•--a) sudo vim "/Library/Application Support/VMware Fusion/vmnet8/nat.conf"
•----enter your password if is asked
•----scroll down until you see [tcpincome]
•----press 'i' to enter INSERT mode (that means, to write :p )
•----Then write the following (this will forward your port)
•-------80 = virtualmachineIP:80 (for example: 80 = 192.168.22.113:80)
•----press 'esc' to exit INSERT mode
•----write in the command :w! (this will save the file)
•----write in the command :q (this will quit vim)
•--b) sudo "/Library/Application Support/VMware Fusion/boot.sh" --restartNow your port is succesfully forwarded :D.
•--a) Assuming that your VM machine is linux. You can get that ip by just writing "ifconfig" in your vm_machine terminal.2.- Open the Terminal.app3.- Write in the command line:
•--a) sudo vim "/Library/Application Support/VMware Fusion/vmnet8/nat.conf"
•----enter your password if is asked
•----scroll down until you see [tcpincome]
•----press 'i' to enter INSERT mode (that means, to write :p )
•----Then write the following (this will forward your port)
•-------80 = virtualmachineIP:80 (for example: 80 = 192.168.22.113:80)
•----press 'esc' to exit INSERT mode
•----write in the command :w! (this will save the file)
•----write in the command :q (this will quit vim)
•--b) sudo "/Library/Application Support/VMware Fusion/boot.sh" --restartNow your port is succesfully forwarded :D.
"""