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 have a Rails app running on Mac at http://localhost:3000 and I would like to access it from Windows 7, which is a guest OS running on VirtualBox.

Can you explain me how to do that?

Thanks!

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Make sure networking is active in the virtual machine and you can web browse, etc. from the Windows machine. Then you can enter the ip address of your Mac and the port in the web browser of the virtual machine and it should come up for you.

You can get your Mac's IP address from the system preferences (networking) or using ifconfig on the terminal application. Then use http://xxx.yyy.aaa.bbb:3000 and your app should pop up for you.

share|improve this answer
    
Thanks! It works. –  collimarco Aug 8 '09 at 13:15
    
You're welcome! –  Bart Silverstrim Aug 9 '09 at 1:48

Just in case others read this more recently... by doing ifconfig or ipconfig /all (in windows) guest.. you can get yor gateway ip.. which will be your host...

thus say your gateway is 10.x.x.x in guest... (and on host it is somethign else), just

try http://10.x.x.x/ (add port as desired).

lakmilis

share|improve this answer
    
This works too. –  radixhound Feb 5 '13 at 17:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.