Port 8080 not listening when running Gunicorn HTTP server

I am following this tutorial. I installed my app dependencies using pip:

pip3 install -r requirements.txt --user

Then installed the Gunicorn HTTP server:

pip3 install gunicorn --user

but when I try to run the Gunicorn HTTP server on GCP :

~/.local/bin/gunicorn -b :8080 main:app

I get the following error :

enter image description here

When I try to check the port 8080 with cmd:

 netstat -a -n -o | find "8080"

nothing shows up.


I'm assuming you're running netstat -a -n -o | find "8080". Are you running it with root permissions? If you run it just as your user, it won't be able to see everything.

Try running it again as the root user, or with sudo - also I would recommend using grep instead of find, like so: netstat -a -n -o | grep 8080.