Question

I have just created a droplet(One click- Dokku), I can't access it via the browser using the IP address

I have just created a droplet(One click- Dokku). I can ssh into it using the IP address. However I can’t access it via the browser using the IP address. I haven’t attached any domain details yet. I have checked that nginx and postgres are running. I have also checked the logs and the rails server is up and running. I think it might be that the IP address on the droplet isn’t mapped to localhost on the server correctly


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

If you use ufw (which you probably do if you’re using the DO Droplet), I wrote up a fix at https://robertlawson.net/making-the-digital-ocean-dokku-one-click-app-work-without-a-vhost/

You have newly created and droplet and installed nginx, if i understand you.

First check with below command you web server is listening on port 80.

netstat -tunlp|grep 80

If you see the output it means web server is listening on the default port.

please check the port no 80 is open the outside world or not.

iptables -L -n

This will show all the firewall rules as defined on your system. You can post that, but, generally, if you’re not allowing everything on the INPUT chain, you probably will need to explicitly allow traffic on the port in question:

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

iptables-save | sudo tee /etc/sysconfig/iptables

service iptables restart

Hope it will help you.