Why does Internet Explorer not have access to my externally accessible Django development server (i.e. Not on the local host?)

I have been instructed by a programming teacher to learn Django. However, I need to encode linux on the command line and therefore cannot access the webpage from the specified Linux box.

To check, I need to place it on the local IP address of the computer, and not on localhost. I am currently starting the Django development server with this command:

python manage.py runserver 0.0.0.0:8000

Firefox and Chrome can access the development server at the IP address of Linux boxes, but can not can not. Internet Explorer

+3
source share
4 answers

( ), Linux- - linux Windows .

- , , . - Firefox/Chrome, IE "- "

, : http:// , Chrome Firefox.

+7

, , IP- 0.0.0.0, :

python manage.py runserver 0.0.0.0:8000

IP- Linux, , 192.168.1.37, :

http://192.168.1.37:8000
+5

nginx - django.

+1

You need to clearly indicate the IP address on the command line to allow other clients to access. You must also enable port 8000 in the firewall:

python manage.py runserver 192.168.1.37:8000
+1
source

All Articles