Can't access my droplet's website via IP address

I can ssh to my droplet’s IP address and git clone, git pull to get my code from github.

After I run “node stringserver” in my droplet, I did see the console log and in another terminal of my droplet, I can see the http output using curl.

However, when I go to chrome, using the IP address to access my droplet web server, I get

"This site can’t be reached refused to connect. Try:

Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED"

To make sure my digital ocean’s droplet is really not reachable as a web server, I tried IE, Firefox, and curl from my own machine, all got the same error: the site “refused to connect”

Please help, Thanks, Suefen

Submit an answer
Answer a question...

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.

Site Moderator
Site Moderator badge
August 9, 2022

Hello there,

This will usually indicate that the virtual host for the IP address is not configured properly.

You can check if your node config and if you’ve specifically binded the app to


listen(3000, ''

just remove the IP and make the whole line:

  1. listen(3000);

This will bind it to all IPs.