Thursday, November 10, 2016

Re: External access

First, start testing you machine port is available in your local network run

python manage.py runserver 0.0.0.0:8000

In other machine in the same network test it
Suppose your django machine has  internal ip address 192.168.1.100, then try to access 192.168.1.100:8000 from your web browser in the other machine.

If works then your problem is the NAT on router, if don't your problem is your firewall in the machine, so try to shutdown firewall and try again if works then test external IP if works then configure your firewall for incoming traffic and start it again.



So


El jueves, 10 de noviembre de 2016, Antonis Christofides <antonis@djangodeployment.com> escribió:
> When you reply to a message please include the previous emails of that thread.
> People who read this list on a mail client might have deleted them and they are
> probably not going to look them up elsewhere in order to remember what the
> problem was.
>
> So, how are you running the Django development server? "python manage.py
> runserver 0.0.0.0:8000"?
>
> Antonis Christofides
> http://djangodeployment.com
>
> On 2016-11-09 23:39, bob gailer wrote:
>> Here is an update on my situation.
>>
>> Windows firewall - I setup in and outbound rules for port 8000 (UDP and TCP)
>> Router - I set up port forwarding for port 8000 (UDP and TCP)
>> Using example code in the socket module documentation I ram socket_client and
>> socket_server on my local machine with the port=8000  and host=my external IP
>> . It worked just fine.
>> When I run the django server instead of the socket server and attempt browser
>> access thru my external IP I get a timeout.
>> Nothing appears on the console running the server.
>>
>> So something is different . Any ideas?
>>
>> I presume that the browser - django server communication at most uses TCP
>> and/or UDP.
>>
>> Any ideas are welcome.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c9803196-8a68-04e2-1fe8-086b43b9e7d5%40djangodeployment.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
"La utopĆ­a sirve para caminar" Fernando Birri



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyNLdvtDaSZCd7WbJLEOCvPELq3nwSmDL2AAu--c1nDYkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment