Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Connection Refused Port 8000 Django on Ubuntu 20.04
I was following the tutorial at https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-ubuntu-20-04 to install Django on a Ubuntu 20.04 Droplet. When I try to access the server ip on port 8000 the server reponds with connection refused and I cannot test the page. I have a feeling it might be where django is binding but I whitelisted the port in UFW. There was another community post here https://www.digitalocean.com/community/questions/connection-refused-from-port-allowed-by-ufw but I am not able to run netstat and I tried to fix the binds by running python3 manage.py runserver ipaddress:8000 but still nothing. What am I missing?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×