Tales of a GeekTrotter Binary Logbook


Run Django from a VM and access it from the host

If you try to run Django development mode from a Virtual Machine and access the website from the host, you need to specify the global IP address in the "runserver" command.

For example if your VM IP address is (in NAT mode):

You should run the server by calling (you can change the port):

python manage.py runserver


Now you need to connect to the website specifying the IP address like that:

Both from the VM:

And the Host:

The server running on Linux is much faster than the one running on Windows :)