How to use port forwarding in VirtualBox 4 Windows host

You can use VirtualBox as an unlimited virtual development server source. You need to use port forwarding if you want to access apache,mysql etc. from the host machine.

You do not have to do command line configuration anymore. VirtualBox NAT port forwading can be used from the network settings of your virtual machine. The key point is do not use ip address fields, if you use DHCP ip addresses.



Now you can go to the address bar and type localhost:8888 at the host machine, this goes to the virtual machine's apache at port 80.