I might be asking a dumb question but I have been stuck on this for a quite some time now. I am running a Linux VM instance on google compute engine and installed Django in it. I have reserved a static ip address using networking but when I try to run
python manage.py runserver [my ip address]:8080
but i get this error:
Error: That IP address can't be assigned to.
I know it has something to do with my ip address configuration. I believe somehow, django is not able to reach my ip address. Does anyone know what to do? How do I configure this properly (in google console, VM or otherwise) to get this running?
Any suggestions will be highly appreciated.
Use internal private IP address for the VM. That worked for me.
python manage.py runserver 10.xxx.0.x:8000
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.