Tuesday, August 7, 2012

Addressing localhost from a VirtualBox VM

I believe this could be pretty useful if you use VirtualBox a lot..

If you're developing on your local machine (on localhost) and want to access localhost from a browser from inside a virtualmachine (which resides on the same local-machine) (maybe to test IE6?), you can reach localhost via 10.0.2.2

So the address for our app would typically be http://10.0.2.2:8000/

Ref: http://stackoverflow.com/questions/1261975/addressing-localhost-from-a-virtualbox-virtual-machine

No comments:

Post a Comment

Popular Posts