G
G
gromyko212021-01-18 14:38:33
Django
gromyko21, 2021-01-18 14:38:33

Error: That IP address can't be assigned to?

I'm trying to raise a server for tests on my computer (Windows) for tests by ip. And I get the error as in the title. My IP address is static. Tried several methods:

  1. python manage.py runserver my_ip:8000
  2. python manage.py runserver 0.0.0.0:8000

The first time it gives me an error
Error: That IP address can't be assigned to

At the second time, the server starts up, but by clicking on the link http://my_ip:8000 the page still does not load and there are no requests to the server. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-01-18
@gromyko21

You are using an IP address that does not belong to the host on which you are running the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question