Question

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

Posted April 5, 2017 2k views
Dokku Ubuntu 16.04

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

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.

2 answers

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.

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/

Submit an Answer