Question

How to open public port on server while running OpenVPN + Pihole app?

Hello! I created an OpenVPN + pinhole 1.1.1 on Ubuntu 18.04 application on my droplet. Now I want to run another application (java app) nearby in this droplet on port 8080. I tried to open ports via ‘ufw allow 8080’ command, but I did not work: can not access java app on http://<droplet_public_id>: 8080 Is it possible to run side apps with OpenVPN + pinhole 1.1.1?


Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
July 15, 2022

Hi there,

I believe that this should be doable. Are you running your Java app on 0.0.0.0:8080 or on 127.0.0.1:8080?

Note that if it is on 127.0.0.1:80808 then the app would only be accessible via the local network. You can check this with:

netstat -plant | grep 8080

Best,

Bobby

Bobby Iliev
Site Moderator
Site Moderator badge
July 15, 2022

Hi there,

I believe that this should be doable. Are you running your Java app on 0.0.0.0:8080 or on 127.0.0.1:8080?

Note that if it is on 127.0.0.1:80808 then the app would only be accessible via the local network. You can check this with:

netstat -plant | grep 8080

Best,

Bobby

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.