My droplet IP Address is 128.199.27.104 and the PM2 status is showing online.
I am not able to connect it, its showing “The site can’t be reached”.

I have added the name servers
ns2.digitalocean.com
ns3.digitalocean.com
ns1.digitalocean.com
to the existing GoDaddy account.

My website is a MERN application.
The client is running on port 3000 and the server is running on port 5000.

I deployed the application and its PM2 status is showing online, but cannot reach the website at the URL

I don’t know, what is the problem? Is it I commit a mistake while setting the app at my droplet?

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.

×
3 answers

Hi @resilliencewebin,

How are you trying to reach the application via your browser? Do you use the port like so http://domain.com:3000 or are you using only http://domain.com. If you are using the latter, make sure you have Nginx to proxy your request from port 80 and 443 to whatever you need them, in this case, 3000.

One other thing, make sure you have your port 3000 opened for incoming connections. This can be done either via ufw if you are using it or the standard IPtables rules.

  • Hi, thanks for your response. I followed the setup of ufw and allowed the port now its working locally at 128.199.27.104:3000. But why is it not running on production, how to check for errors? if any

Hi,

It looks working now - http://128.199.27.104 . Can you share what was a cause of this issue, pls ?

Thanks for sharing the solution. It helped!!!

Submit an Answer