Question

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 xxx.xxx.xxx.xx 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

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.

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 127.0.0.1

Example:

listen(3000, '127.0.0.1'

just remove the IP and make the whole line:

  1. listen(3000);

This will bind it to all IPs.

Regards