Tutorial :VMWare guest web-server not reachable from host


Software: VMWare Fusion 2.05 on Mac OS X 10.5.8 (also applies to VMWare Workstation 6.5.2 on Vista, used for verification of the issue) Guest: Ubuntu Server 9.04 (also applies to Ubuntu Desktop 9.04, used for verficiation of the issue) VMWare Networking: bridged Router: Apple TimeCapsule, latest firmware


After successfully installing Django 1.1 on the guest, and starting Django's built-in webserver (listening on, I verified via wget (and also via Firefox on Ubuntu Desktop 9.04) that indeed the server works.

However, I haven't been able to connect to the Django server from the host machine.


In bridged mode the guest OS has the IP (assigned via DHCP by the TimeCapsule), the host OS has the IP (assigned via DHCP by the TimeCapsule). I can successfully ping the guest from the host, and also ping the host from the guest. But the Django server on port 8000 is not reachable from the host OS.

Is there any configuration setting that must be enabled for routing the Django server from the guest to the host? Either in Ubuntu, or in VMWare (Workstation or Fusion), or in Vista or Mac OS X?


I found the solution. When invoking django-admin.py runserver, there is a documented optional argument ipaddr:port. Setting this to (instead of the default enabled the correct routing from guest to host.


I found that you can just start up the server with the following command, and that opens up all ip's...

python manage.py runserver  

You're welcome.


This may be a serverFault question?

I run multiple VMWare instances on macs all the time and they access each other fine and access from the host works fine, so there is no theoretical problem here. I also find nothing wrong in what you describe, though I'm not a Django expert.

I suggest trying something easier, like trying to access a simple text index.html file, first from from within the VM and then from the host. Or perhaps even set up apache and try these on port 80 to make sure the connectivity is OK.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »