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.
- 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.justengel– justengel2017-05-31 19:31:08 +00:00Commented May 31, 2017 at 19:31
- ALLOWED_HOSTS = []Ostrowsky– Ostrowsky2017-05-31 19:59:24 +00:00Commented May 31, 2017 at 19:59
- Set it to ALLOWED_HOSTS = ['193.124.64.241', '127.0.0.1'] but it didn't help.Ostrowsky– Ostrowsky2017-05-31 20:07:44 +00:00Commented 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.Alasdair– Alasdair2017-05-31 20:54:56 +00:00Commented May 31, 2017 at 20:54
Add a comment |