Ubuntu in Virtualbox - web server very slow when using local IP address

Posted by Lenny Marnham on Super User See other posts from Super User or by Lenny Marnham
Published on 2010-09-01T09:08:38Z Indexed on 2011/01/05 5:56 UTC
Read the original article Hit count: 167

Filed under:
|
|
|

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.

© Super User or respective owner

Related posts about ubuntu

Related posts about networking