I am running VirtualBox 4.1.6 on Windows 7 on fairly quick machine with 12G of ram. I have a virtual machine running Ubuntu 11 on which I am doing rails development using ruby 1.9.3 and rails 3. When I run up the WebBrick server and try to browse to the site from the host OS (Windows 7), there is a long delay before the page is returned, and it’s the same for subsequent requests. Accessing the server inside the virtual machine is quick. I am running in bridged mode but have tried a few other options it doesn't seem to help.
I can ping from the host the guest OS without any perceptible delay. I also tried connecting to an Apache server running on the guest from the host add it connects quickly. Tried running Apache on a nonstandard port (8080) and its still fast so don't think its port specific. Have tried starting WebBrick using -b to bind to both 0.0.0.0 and the actual IP address bound to eth0. Looking at theWebBrick console, the delay seems to happen before WebBrick sees the request.
It looks like the problem is specific to WebBrick but I am at a bit of loss to explain it as I am not a network guru. Are there any diagnostics I can try?