On Thu, May 07, 2009 at 07:17:08AM -0700, John Crawford wrote: > I'm not sure why your address is all zeros, did you give a > specific host number parameter to runserver?
That causes the development server to listen on all available network interfaces. This, unfortunately, is not explained in the runserver documentation [1] or the admin utility's built-in help. The only place I've found it documented is in chapter two of The Django Book [2]. This is not Django-specific, as RFC 3330 ("Special-Use IPv4 Addresses") [3] defines addresses in the 0.0.0.0/8 block as referring to "source hosts on `this' network", but it seems that it would be helpful to note this in the Django docs for people who are unfamiliar with this convention. > Generally 127.0.0.0:8000 would be your localhost That would cause the development server to listen on port 8000 of whatever interface uses 127.0.0.0. The hostname "localhost" [4] typically resolves to 127.0.0.1, the address of the loopback interface [5]. References: [1]: <http://docs.djangoproject.com/en/1.0/ref/django-admin/#runserver> [2]: <http://www.djangobook.com/en/2.0/chapter02/#cn112> [3]: <http://www.rfc-editor.org/rfc/rfc3330.txt> [4]: <http://en.wikipedia.org/wiki/Localhost> [5]: <http://en.wikipedia.org/wiki/Loopback> -- Phil Mocek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---