Report this

What is the reason for this report?

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

Posted on March 15, 2022

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?



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!

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.

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

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

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.