ruby-on-railssubdomainvmwarerack-pow

Can't access Rails app using VMWare because of subdomains?


I have a Rails app running on my Mac, and I'm using VMWare Fusion with Windows XP installed.

My Rails app uses subdomains, and I usually access it on my mac using http://<subdomain>.lvh.me:3000

-or-

I also have a pow server, and can access my Rails app on my mac using: http://<subdomain>.<mydomainname>.dev


But I can't access the app in VMWare using subdomains. I can't use lvh.me:3000 or my pow domains.

Does anyone know how to make this work?


Solution

  • You should be running your virtual machine using the bridged network mode. This will put the machine on the same network as the host OS.

    If that doesn't work, I would use your VM's hosts file to add manual entries for to your host machine.