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

April 5, 2017 230 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

1 Answer

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.

Have another answer? Share your knowledge.