Question

Where do DigitalOcean Functions run from? Do they retain an IP address?

I’m trying to make sure the function has access to a database on DigitalOcean, and I’m curious where the function runs from? Is the IP address just the external address of a random server it’s running on, or is the server (and IP address) confined more to just my account?

I’m going to assume for now, that it is not a good idea to connect to one of my Databases when using just a function.


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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 8, 2022

Hey @jacobmaxfield,

Both the App Platform and the serverless functions do not have static IP addresses.

It looks like someone has had the same idea before and has posted it on our Product Ideas board. The best thing to do would be to head over and add your vote to it, as well as adding any additional information in the comments for exactly what you’d like to see implemented:

https://ideas.digitalocean.com/app-framework-services/p/app-platform-static-ip

However, if your serverless function is part of your App you could still use the managed database trusted sources as described here:

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

Hope that helps!

- Bobby.

Try DigitalOcean for free

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

Sign up