Server Fault is a question and answer site for system and network administrators. 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

I use VirtualBox on my Mac to run IE for testing, but sometimes I want to test http://localhost. Is there a way to do that?

share|improve this question

closed as not a real question by MDMarra, Chopper3 Aug 14 '11 at 20:20

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Localhost on the Mac, or localhost on the VirtualBox VM? From the Mac, or from the VirtualBox VM? – David Mackintosh Sep 29 '09 at 19:59
keep in mind that every machine thinks that it is named "localhost". – Chris_K Sep 29 '09 at 20:29

Open Terminal, and type "ifconfig" to find out the IP address of the Mac OS X network interface. Look for en0: or en1:, for the field named "inet". It should be something like Then type that in IE's address bar, like

(By the way, I don't have enough rep to do it, but this should probably be on SuperUser)

share|improve this answer

You could use something like putty to forward a port from within the VM to localhost on the Mac OS.

share|improve this answer