Monday, November 7, 2016

Re: External access

I don't totally understand how it works under the hood, but using the answer Michal Petrucha provided earlier has worked for me in this situation independent of the OS and any router settings.

Run the server using:
python manage.py runserver 0.0.0.0:8000

You'll be able to get to at http://<your ip>:8000 from the machine running the server. With most default router configurations you should also be able to access 
it from any computer on your LAN at the same url.
If you need to access it outside your LAN you'll have to delve into port forwarding

-Thomas

On Mon, Nov 7, 2016 at 10:53 AM bob gailer <bgailer@gmail.com> wrote:
On 11/7/2016 1:23 PM, GMail wrote:
> Wow... Indeed, in Windows telnet is disabled by default. Here's how
> you can enable it (first link on Google):
> https://www.rootusers.com/how-to-enable-the-telnet-client-in-windows-10/
C:\Users\bgailer>telnet 24.211.133.163
Connecting To 24.211.133.163...Could not open connection to the host, on
port 23: Connect failed.

C:\Users\bgailer>ftp 24.211.133.163
 > ftp: connect :Connection timed out
> I believe the problem is (how somebody already mentioned earlier) your
> port is inaccessible from external network or server is only serving
> on lo (loopback interface, also was mentioned earlier). You could
> easily test both cases with telnet.
How would I do that?
> And I forgot to mention, that you should probably run telnet on
> separate machine (not the one serving Django), since you have no
> problem accessing your server locally.
I have no machines that are not on my lan.
>
>> On 7 Nov 2016, at 21:19, bob gailer <bgailer@gmail.com
>> <mailto:bgailer@gmail.com>> wrote:
>>
>> On 11/7/2016 8:51 AM, GMail wrote:
>>> Hi! Seems like port forwarding doesn't work correctly. Do you have
>>> any other ports forwarded (like ssh or ftp)? If so, do they work as
>>> expected?
>>>
>>> What is this command's output:
>>> telnet <external_ip> 8000
>> Sorry but I'm running Windows 10 which does not recognize "telnet"
>>
>> Bob
>>
>> --
>> 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
>> <mailto:django-users+unsubscribe@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto: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/41e7d76b-3938-43c3-d61a-21e94ecbd067%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto: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/5F9B0BC5-2D58-46A9-B304-AFA2FF777419%40gmail.com
> <https://groups.google.com/d/msgid/django-users/5F9B0BC5-2D58-46A9-B304-AFA2FF777419%40gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
Image and video hosting by TinyPic

--
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/4a92ce05-eee8-038c-b1ef-6dd15e699087%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CAFUUR5dwNx9H%2Bxp6P3_SyPmJdN14E4wPh86Y9cLjdYr8SUQ%3DZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment