9
5
Here's my setup:
I have a local server running on my machine (Mac OS, Snow Leopard). I can access it via my browser by doing
localhost:3000
I have a virtual machine using Virtual Box running a windows XP. If I try to access using localhost:3000, it fails. Same thing if I use the ip of the Mac machine.
The virtual machine has access to the internet.
How can I access my local server in my virtual machine?
1
I know this is and old thread, but here is the answer http://stackoverflow.com/questions/1261975/addressing-localhost-from-a-virtualbox-virtual-machine
– deiga – 2012-08-23T04:57:58.543if you try to access "localhost" on the virtual machine, it tries to connect to itself, instead of to the macosx server. I think the answers up to now missed that point – brandstaetter – 2009-11-24T13:46:43.673