Question

Access application from outside created on dokku

I’ve created a dokku droplet and deployed a node app: git@github.com:heroku/node-js-sample.git

After deploy I cannot access the app from the outside either by using the IP:PORT or the domain:PORT

Ping the IP I get a response:

64 bytes from IP: icmp_seq=0 ttl=55 time=37.963 ms
64 bytes from IP: icmp_seq=1 ttl=55 time=38.982 ms
64 bytes from IP: icmp_seq=2 ttl=55 time=44.458 ms

When ssh the server I can see that the app is up and running:

dokku apps:report
=====> node-js-sample app information
       App dir:             /home/dokku/node-js-sample
       Git sha:             4d7f659
       App cid:             d215f9544d7b
       Status:              running

Curl the application from the DO server I can see the response:

curl http://IP:3767
Hello World!

Curl the application from the outside and there is no response.

Checking opened ports by nginx:

netstat -tanpl|grep nginx
tcp        0      0 0.0.0.0:3767            0.0.0.0:*               LISTEN      7573/nginx -g daemo
tcp6       0      0 :::3767                 :::*                    LISTEN      7573/nginx -g daemo

No idea what I could do next. Any help is much appreciated.

Cheers


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.

Accepted Answer

Reading this post I finally understood the problem.

Looks like that UFW is enable by default and it only exposes certain ports. I’ve added a new rule to enable the port of my application and it now works!

(/¯◡ ‿ ◡)/¯ ~ ┻━┻

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.