Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
2  
keep in mind that every machine thinks that it is named "localhost". –  Chris_K Sep 29 '09 at 20:29
add comment

2 Answers

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 192.168.1.100. Then type that in IE's address bar, like http://192.168.1.100/

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

share|improve this answer
add comment

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

share|improve this answer
add comment