# Can't start the development server at http://127.0.0.1:8000/

**URL:** <https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934>\
**Category:** Deployment\
**Created:** [April 13, 2020, 3:57pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934 "2020-04-13T15:57:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teodor-Raul](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/teodor-raul/32/1018_2.png) [@Teodor-Raul](https://forum.djangoproject.com/u/Teodor-Raul)\
**Post date:** [April 13, 2020, 3:57pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/1 "2020-04-13T15:57:02Z")

</div>

Hi guys, need some help.

I’ve installed Ubuntu 18.04 on a GCP VM. Installed Django and the ‘mysite app’ from Django. Then initiated the following command ‘python3 manage.py runserver’. I’m getting the error from below on a chrome browser.

I’ve already allowed all ingress traffic on the GCP firewall.  
Any ideas why I can’t start manage.py from the mysite folder and view it on a browser?  
Thanks in advance!

* * *

# This site can’t be reached

**127.0.0.1** refused to connect.

Try:

- Checking the connection
- Checking the proxy and the firewall

## ERR\_CONNECTION\_REFUSED

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [April 13, 2020, 7:21pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/2 "2020-04-13T19:21:48Z")

</div>

127.0.0.1 is the localhost address - it’s a reference to the machine on which the browser is running. It’s not the address of your GCP VM.

Additionally, I suggest you read the [runserver](https://docs.djangoproject.com/en/3.0/ref/django-admin/#runserver) documentation, especially the parts about not using runserver in a production environment.

Ken

---

<div class="post-metadata">

**Author:** ![timonweb](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/timonweb/32/570_2.png) [@timonweb](https://forum.djangoproject.com/u/timonweb)\
**Post date:** [April 14, 2020, 12:30pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/3 "2020-04-14T12:30:42Z")

</div>

Try to figure out your GCP VM ip address, let’s say it’s 192.138.12.01, then your Django server should be available at `http://192.138.12.01:8000`

---

<div class="post-metadata">

**Author:** ![Teodor-Raul](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/teodor-raul/32/1018_2.png) [@Teodor-Raul](https://forum.djangoproject.com/u/Teodor-Raul)\
**Post date:** [April 14, 2020, 4:08pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/4 "2020-04-14T16:08:36Z")

</div>

Thanks both! Tried with the public IP and still doesn’t work. I’ve identified my GCP VM public IP address and used that with ‘http://’ as prefix and port :8000 as a suffix. Here it it: [http://130.211.107.209:8000](http://130.211.107.209:8000)

I also tried to ‘runserver 80’ so that it runs on port 80.

I changed the firewall ingress to allow all TCP / HTTP traffic, and still doesn’t work.

I also checked for any firewall rules in the Ubuntu OS but they are already disabled.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [April 14, 2020, 4:46pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/5 "2020-04-14T16:46:59Z")

</div>

Again, I suggest you read the [runserver](https://docs.djangoproject.com/en/3.0/ref/django-admin/#runserver) documentation, also referencing the section [Listening on different addresses](https://docs.djangoproject.com/en/3.0/ref/django-admin/#examples-of-using-different-ports-and-addresses)

---

<div class="post-metadata">

**Author:** ![baicloud520](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/baicloud520/32/2548_2.png) [@baicloud520](https://forum.djangoproject.com/u/baicloud520)\
**Post date:** [November 22, 2020, 8:29pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/6 "2020-11-22T20:29:07Z")

</div>

Hi,

If you receive the error message that port is already in use, tell Django to use a different port by entering python manage.py runserver 8001, and then cycle through higher numbers until you find an open port.

Noah

---

<div class="post-metadata">

**Author:** ![vegakavery](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/vegakavery/32/18939_2.png) [@vegakavery](https://forum.djangoproject.com/u/vegakavery)\
**Post date:** [February 4, 2024, 1:46pm UTC](https://forum.djangoproject.com/t/cant-start-the-development-server-at-http-127-0-0-1-8000/1934/8 "2024-02-04T13:46:30Z")

</div>

i was facing the same issue, as kenwhitessell said you should read the documentation once.  
but try adding your IP Address in request.py file in allowed\_hosts list then try running it as runserver IP:8000
