when i run my code in local machine the Db2 instance gets connected and the app runs. But when i tried to deploy using streamlit cloud the connection is failing
Thanks for sharing this question.
Without seeing your code, my best guess would be that your DB2 instance might be blocking the requests coming from your deployed app since the IP address is unfamiliar.
Can you share the link to the GitHub repo and deployed app?
The issue was that the firewall is blocking the IP address. I need to add Source and destination IP to my DB2. Where do i check source IP for streamlit cloud?