From the course: Learning VirtualBox (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Forwarding ports for services

Forwarding ports for services - VirtualBox Tutorial

From the course: Learning VirtualBox (2020)

Start my 1-month free trial

Forwarding ports for services

- [Instructor] Frequently, virtual machines are used for development tasks and for other purposes that require access to a specific network port. If a guest is operating in bridge networking mode, we'll be able to access the ports on the guest unless they're blocked by a firewall because the guest is participating in the network just like other systems. But if a guest is in one of the NAT modes, we don't have a way of getting to the ports that a guest might be using to run a service because the guest is on a different network. VirtualBox gets around this limitation by allowing you to map or forward a port from a guest to a port on the host, making whatever service is running on that guest port accessible at the host's address with a different port. Let's take a moment and install a web server here in the guest. I'll install Apache and if your guest is running Windows, you can install XAMPP or a similar product to…

Contents