I'm running a VirtualBox VM in bridged network mode.

Is there still an internal IP address for the Host?

(I don't want traffic to my host going over the bridged network)

To clarify, I do want my VM bridged on the public network, but I also want it to be able to connect to my host, without going out on the public network. Would setting two interfaces (one bridged, one host-only) solve this? Would I then have to configure the routing table?

  • I think that bridged network is the one where host and guests share the network. I think that internal network may be the one that you need. see virtualbox.org/manual/ch06.html – ctrl-alt-delor Jul 21 '16 at 14:44
  • @richard but on internal network my VM won't be bridged to the network. I would like to have my VM bridged on the public network but also (if possible) hit the host without going out on the public network. I guess what I would need is two interfaces, one host-only and one bridged, my issue is configuring the routing table after. – Juicy Jul 21 '16 at 14:53
  • If your guest talks to the host on the public IP address then traffic won't actually leave the machine; it'll still stay on the bridge. – Stephen Harris Jul 21 '16 at 15:04
  • If you want good clear answers, then provide a good clear question: The problem with providing good answers is often not a technical one, but knowing what you want to do. – ctrl-alt-delor Jul 21 '16 at 15:06
  • 1
    The host-only adapter will use net by default. You can change it in Settings. You can have the addresses assigned by a built in DHCP server or assign them statically. To access your host from the guest without going through the public network, just use its 192.168.56 address. – Mark Plotnick Jul 21 '16 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.