Report this

What is the reason for this report?

How To Access App From Droplet

Posted on October 19, 2024
  • I set up app on app platform
  • I disabled the Public HTTP Port 8080
  • I added an internal port (3044)
  • I deployed

How do I use it from a droplet?

The docs say:

By default, other components in an app can communicate with service components over the app’s LAN using the service’s name as a URL. For example, if your app contains a service named web, other components can reach the web component at http://web.

I don’t know if a droplets count as “other components in an app”, but I tried a curl request from my droplet using the app name (with and without port) and it does not work.



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.

Hey @skeddtemp!

Droplets are not considered components in the App Platform. The internal LAN communication mentioned in the docs only applies to services within the same App Platform app, not external resources like Droplets.

For more information about components you can take a look at this documentation page here:

https://docs.digitalocean.com/products/app-platform/how-to/manage-components/

Since you’ve disabled the public HTTP port and set up an internal port (3044), your app isn’t accessible externally outside the App Platform itself.

If you need to be able to access your App deployed on the App Platform. you’ll need to expose a public port so your Droplet can reach the app. Once it’s exposed, you should be able to use the app’s public URL to access it via a curl request from your Droplet.

Let me know if this helps or if you need any further clarification! 👍

- 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.