Getting localhost to work over HTTP in VirtualBox
December 2nd, 2009 by Alex Cabal
For some reason, VirtualBox doesn’t consistently resolve localhost to the host machine’s IP. Sometimes it’ll work, sometimes it’ll bounce you to the dns error page. To fix this, just add this to your c:\windows\system32\drivers\etc\hosts:
10.0.2.2 [your computer name]
That’s it–you should now be able to do things like http://localhost:8080/
This entry is filed under tech, ubuntu, virtualbox. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
-
No Comments
Post your comment