To access the host OS when using a NATed Virtual Box connection, you need to determine the IP address of the host OS (on the other side of the NAT) and then add this IP address to the hosts file on your guest OS:
From within the guest OS, determine your default gateway. This will be the IP address of the host OS. The easiest way to do this is to open a command prompt and run
ipconfig /all
. Under theEthernet adapter
, find the Default Gateway. This is almost certinaly 10.0.2.2 if you haven't changed anything.Now, find your hosts file and add the host IP address. On Windows 7, this file is located in
%systemroot%\system32\drivers\etc\
.- Start Notepad with administrator privileges (Start|Run, type "notepad", right click and choose "Run as administrator."
- Open up
%systemroot%\system32\drivers\etc\hosts
in Notepad (you'll need to change it to show all files). - Add an entry to the hosts file mapping the host IP address to the hostname you want, such as:
10.0.2.2 local.connectwithme