By MonsieurSlim
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
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.