Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can one get host IP address from within vbox virtual machine? I'm trying to clone repository running on the host, so I need an address to perform hg clone.

share|improve this question
up vote 5 down vote accepted

That all depends on your networking arrangement.

If you are using a NAT or Host Only arrangement then the hosts's IP address will be your default route provided by DHCP by the host.

If you are bridging your network then there is no way to automatically know the host's IP address.

share|improve this answer
The default host IP for virtualbox NAT is – Sean McMillan Apr 17 '13 at 15:22

This doesn't answer the question, but perhaps solves the problem.

To clone a hg repository, I would uses shared folders in this case. HOWTO: Use Shared Folders

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .