Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: 10.8.8.205
  • Gateway: 10.8.8.254

Guest OS

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

Additional Info

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

Any help would be highly appreciated.

UPDATE

Inside my VM, if I set Firefox to not use the proxy settings for the IP 10.8.8.220 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 0.0.0.0:8000. But still can't reach it from the Host OS even if I configure Firefox the same way

share|improve this question

migrated from stackoverflow.com 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 manage.py runserver 10.8.8.220:8000 –  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 10.8.8.220 –  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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.