Port forwarding
Use --forward to carry a port on the Mac into the guest in nat and tunnel modes. bridged puts the guest on the LAN with its own address, so it needs no forwards.
Add and remove forwards
The form is:
Repeat --forward for more ports. In Launchpad, the machine's Settings… has a Port Forwarding section.
How forwards behave
vphone-vmopens the listeners when the VM starts and closes them when it stops.- In
natmode it connects to the guest's address: the fixed one, or the one vphoned reports. - In
tunnelmode the connection reaches the guest as if it came from the gateway. - A port that is already taken on the Mac is reported in the VM's log and skipped; the other forwards still work.