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?
Asked
Active
Viewed 5,679 times
2
-
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
-
2keep in mind that every machine thinks that **it** is named "localhost". – Chris_K Sep 29 '09 at 20:29
2 Answers
3
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)

Paul Tomblin
- 5,225
- 1
- 28
- 39
0
You could use something like putty to forward a port from within the VM to localhost on the Mac OS.

Zoredache
- 130,897
- 41
- 276
- 420