Abraham P
Abraham P

Reputation: 15471

Testing Rails App running on mac os x from VirtualBox

I am running a Rails app on server 3000 on my Mac OS X, and am trying (and failing to) connect to it from a Windows XP IE7 VM.

I have tried the following:

NAT and using the ip address provided on the mac through ifconfig Bridged Adapter in promiscuous mode and using the ip address provided on the mac through ifconfig Host Only and using the ip address provided on the mac through ifconfig Bridged Adapter in promiscuous mode and 10.0.2.2:3000 (as outlined here:http://ubuntuforums.org/showthread.php?t=682519).

None of these appear to be working...

Upvotes: 4

Views: 695

Answers (1)

Ross Hambrick
Ross Hambrick

Reputation: 5940

I got this working by leaving the adapter setting on the VM as NAT and adding http:// in front of the 10.0.2.2:3000 address.

For a while a tried just putting 10.0.2.2:3000 in and it didn't worked.

Hope it helps someone save some time.

Upvotes: 13

Related Questions