How to comunicate between app and droplet

I am making an app that requires making requests to a local service.

I don’t want to make the service public, so I created a droplet with a proxy app on it.

The problem is, I can’t reach the droplet from the app backend, even though I tried both the public and the private IP.

I tried pinging the droplet (and from the app using the console, but the packet loss was 100%.

How can I make it so the app can reach other services, and the requests from the app backend reaches the droplet?

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.

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.

👋 @baljerattila

VPC support (access via the private IPs) is not supported by App Platform (though it is on our horizon).

You could try authenticating calls to your droplet with other methods (eg. TLS).

You could also try using an App Platform internal service instead of a droplet. This is a service that runs in App Platform and is only accessible from other components in your App.