Unable to access my website using the IP address of my Digital Ocean droplet

I am in the process of deploying my MERN app to a Digital Ocean droplet(Ubuntu 20.04 server).

I have cloned my GitHub repo, installed the dependencies and pm2.

I start the server using the command pm2 start server/index.js. enter image description here Then when I visit the URL http://134.122.112.22:5000, I get the following error: enter image description here Why am I not able to access my site?

*Note that I have not yet bought a domain. Also I have not yet installed NGINX.

Am I missing something?

EDIT-1 I added a HTTP inbound rule in the firewall. Yet, I am receiving the same error. enter image description here


You are missing the Nginx. Port 80 is open but you are trying 5000, so won't work.

You can open port 5000 in the firewall and also check ufw firewall.

ufw status 

and open the port using command

sudo ufw allow 5000