Monday, August 27, 2012

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

try running dev server with command like "./manage.py runserver 0.0.0.0:8000" - 0.0.0.0 means that socket will listen for connections on all interfaces.
other people in your network will be able to connect your box using your ip.

if this does not help - show us output of 'sudo iptables-save' and 'sudo ifconfig'

On Mon, Aug 27, 2012 at 10:53 AM, nav <navanitachora@gmail.com> wrote:
Dear Folks,

I am running my django development server on 127.0.0.1:8000 and accessing this address from my web browser on the same machine. In the past few days I have found thet the web browsers keep prepending the address with "www." when using the above address. 127.0.0.1 without the prot number works fine but the django development server requires a port number.

I have not encountered this problem before and am puzzled by what is happening. I am working on a Kubuntu 12.04 linux box and my /etc/hosts/ file is below if that helps:

====================
127.0.0.1       localhost
127.0.1.1       <mymachinename>

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
====================

TIA
Cheers,
nav

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EZzlz6iQOGoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Regards,
Anton Baklanov

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment