Virtualbox Bridged Networking Mode Allows VM to Connect to Your Router

The default networking mode in Virtualbox is NAT. It allows the guest machine to browse the Internet via a virtual router and that’s great for most people. But if you are looking to have more interaction between host machine and guest machine, like SSH into guest machine, visiting website developed in guest machine, allow other devices in your network to see the guest machine and enable guest machine to browse the Internet, the you can choose the bridged networking mode for your guest.

Change Networking Mode to Bridged

When the guest machine is shutoff, open the settings dialog. Click the Network tab on the left pane.

virtualbox bridged networking mode

By default only adapter 1 is enabled for guest machine and the default networking mode for adapter 1 is NAT. To change networking mode to bridged, click NAT and select Bridged Adapter from the list. Click OK button to save your settings. That’s very simple.

IP Address of Guest Machine in Bridged Networking Mode

Now start your guest machine. In my case, my host is Ubuntu and guest is openSUSE. Once it’s started, open a terminal and type ifconfig command to find the IP address of guest machine. You can see that the IP address of my openSUSE guest is

use ifconfig command to find ip address

Next open a terminal on the host machine and type ifconfig command to find the IP address of host machine. You can see my Ubuntu host machine has the IP address of


So the IP addresses of host machine and guest machine are in the same network range ( I can ping the guest from ubuntu host.

ping virtualbox guest in bridged mode

And I can ping the host from openSUSE guest.

ping the host from virtualbox guest

In bridged networking mode, the default gateway of Virtualbox guest is your home router (If you have a home network). That means your home router allocates IP address to Virtualbox guest. Enter the following command in Virtualbox guet to find out the default gateway.

ip route show

default gateway of virtualbox guest

The IP address after default via is the IP address of default gateway.

Visit Host Local Web Site from the Guest

I have installed Nginx Web server on my Ubuntu host, I can visit Nginx Web server from my openSUSE guest. Just type the IP address of host machine in the browser address bar.

visit nginx web server from the gust

You can also install a Web server in the guest machine and visit it from host machine.

Other Devices on Your Network Can See the Guest Machine

My android phone is connected to my home network, and I can visit Web site of guest machine from my android phone. Type the IP address of guest machine in the android browser.


Other Devices on Your Network Can See the Guest Machine

You can browse the Internet in the guest machine, SSH into the host and vice versa.

To wrap up, bridged networking mode exposes the guest machine to your local network. The virtual machine is like another physical machine on the network. In NAT mode the guest machine is protected under a virtual router and devices on your network can’t see it. In order to access guest machines, you have to setup port forwarding. In both networking modes, the guest machine can go out to the Internet.

Rate this tutorial
[Total: 17 Average: 3.8]

2 Responses to “Virtualbox Bridged Networking Mode Allows VM to Connect to Your Router

  • meandeen
    1 year ago

    Thank you very much for the easy to follow explanation! I was getting frustrated trying to use both the NAT adapter and the Host-Only adapter on the VM machine. This is so much simplier – I was reluctant to try the bridged adapter, but it was no problem to use after reading your informative tutorial. Again, thank you!

  • Thanks for this!

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community ( for questions unrelated to this article.
  • If my answer helped you, please consider supporting this site. Thanks :)