Ubuntu in Virtualbox - web server very slow when using local IP address
- by Lenny Marnham
I'm using Ubuntu (Lucid Lynx) to learn Ruby On Rails. I'm running Ubuntu in VirtualBox (the host is Windows 7 Ultimate), using bridged networking.
When I run my Rails app and point the browser at it using localhost:3000, the app responds immediately and my page is rendered in a second or two.
However, if I use 10.0.0.5:3000 (where 10.0.0.5 is my IP address reported using ifconfig), the response from my rails app is incredibly slow - maybe 30 seconds or more for the server to respond and render the page.
This happens in both Firefox and Chrome. Also, when I hit the Rails app from the host (to test it in IE), I get the same slooooooow response.
Any ideas what might be going on? I've tried it with two different routers, and on two different networks (work and home) with the same result.
Cheers all.