Question

Cannot connect to my droplet IP Address

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?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
September 25, 2020
Accepted Answer

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.

Thanks for sharing the solution. It helped!!!

Hi,

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel