superuser.com
Connect to the host machine from a VirtualBox guest OS?
find the ip address of host and guest if you are on windows, run ipconfig and get the ip address; if you are on Linux, Unix, or Mac OS, run ifconfig | grep 'inet' and get ip address; the ip address is like 192.168.1.1; if you want to access host, run browser in guest and enter ip address of host
virtualbox - How to get IP address assigned to VM running in background ...
You can use the VBoxManage command to extract the IP address, as shown in this forum post on virtualbox.org: VBoxManage guestproperty enumerate <vmname> Unless you have very good reasons, though, you'll want to strongly consider assigning a static IP address to your guest vm. This is possible even though you are probably using DHCP.