Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Testing Rails applications built on an Ubuntu guest

mobile ubuntu virtualbox

  • Please log in to reply
1 reply to this topic

#1 xtheunknown0

xtheunknown0

    Passenger

  • Members
  • 1 posts

Posted 22 March 2014 - 10:16 PM

I'm virtualising Ubuntu 13.04 using VirtualBox with a Windows 7 Home Premium host. codecore.ca/how-to-test-the-rails-app-running-on-your-computer-on-mobile-devices-like-an-ipad-or-iphone/ implies that I just view Network -> Connection Information in Ubuntu and type in the IP address into my phone's browser. I get "Web page not available", even though localhost:3000 in Firefox (in Ubuntu) works. How do I get things working?



#2 jack

jack

    Signalman

  • Moderators
  • 19 posts
  • LocationPoole

Posted 24 March 2014 - 01:55 PM

VirtualBox uses NAT to isolate your VM from the rest of the network. This is almost always a pain in the backside in development environments.

 

To fix this, change the network adapter type in VirtualBox to work in "Bridge" mode. This allows the Ubuntu VM to access your main network via the host. Once saved, boot the VM and it should be issued with an IP address which you can access from your phone.







Also tagged with one or more of these keywords: mobile, ubuntu, virtualbox

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users