Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having trouble trying to reach my Django web dev server inside VirtualBox (4.2.8). What I'm trying to do is connect through the web browser in my Host OS to the web dev server running in the Guest OS, but I'm getting an error:

504 Gateway Timeout
Gateway timeout expired while waiting for server response

Here is some information about my system:

Host OS

  • Windows XP SP3 32bits
  • IP:
  • Gateway:

Guest OS

  • Ubuntu 13.04 32bits
  • IP:
  • Django 1.5
  • Python 2.7

Additional Info

  • I'm using virtualenv
  • The command used to run the webserver is python runserver
  • The Network Adapter in VirtualBox is set to "bridge"
  • Inside the Guest OS I can reach my site using but I can't reach it using http://localhost:8000 or
  • In my Host OS I can't reach the web dev server using

Any help would be highly appreciated.


Inside my VM, if I set Firefox to not use the proxy settings for the IP then I can reach the webserver using that IP in the web browser no matter if I start the server using the VM IP or But still can't reach it from the Host OS even if I configure Firefox the same way

share|improve this question

migrated from Jun 19 '13 at 6:42

This question came from our site for professional and enthusiast programmers.

Can you reach it from inside the vm? If you only have a text prompt, try wgeting the site. – Joe Frambach Jun 18 '13 at 19:15
Try runserver – Ye Liu Jun 18 '13 at 19:28
@JoeFrambach I have updated my question – David Jun 18 '13 at 19:35
Can you ping the guest OS from host with – dusual Jun 18 '13 at 19:36
@dusual the Guest OS is responding the ping from the Host OS – David Jun 18 '13 at 19:41

For whatever reason, setting a proxy exception in Firefox in the Host OS, is not working as expected but in Chrome is

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.