0

Django web-server runs locally on windows server 2016 at http://127.0.0.1:8000 I have access to a web-page and all its functions, but when I try to access it remotely using http://193.124.64.241:8000 the page is not available. I've opened port 8000 in windows brandmauer settings for incoming and outcomming connections but it hasn't helped.

4
  • Look into the Django settings for ALLOWED_HOSTS. You may also have to run the server with "0.0.0.0". The address "127.0.0.1" is a loop back address, so that address should only be local. Commented May 31, 2017 at 19:31
  • ALLOWED_HOSTS = [] Commented May 31, 2017 at 19:59
  • Set it to ALLOWED_HOSTS = ['193.124.64.241', '127.0.0.1'] but it didn't help. Commented May 31, 2017 at 20:07
  • Possible duplicate stackoverflow.com/questions/4073977/…. Note that the development server should not be used on a public IP, it's insecure. Commented May 31, 2017 at 20:54

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.