Streamlit cloud IP error

I deployed an app in that needs to connect with google cloud vision API (configured with IP restrictions). What is the IP that needs to be whitelisted on the API? How can I know the IP of my deployed app that is using to connect to the API?

This is the error I get when trying to connect to GCV API:
The provided API key has an IP address restriction. The originating IP address of the call (fda3:e722:ac3:10:3a:d817:c0a8:e0) violates this restriction

I already try to whitelisted the above IPv6 but this will change everytime I reboot the app

1 Like


I have the same problem for connecting to a MongoDB database hosted on Atlas.

pymongo.errors.OperationFailure: ip not in whitelist, full error: {'ok': 0, 'errmsg': 'ip not in whitelist', 'code': 8000, 'codeName': 'AtlasError'}

How can we know which is the IP to whitelist? Thanks!

Hi @alberduris, :wave:

Streamlit currently uses six stable outbound IP addresses. These can be added to your allowlist. All six of them are listed in our documentation: Stable outbound IP address - Streamlit Docs

Happy Streamlit-ing! :balloon: