@Irfan Shaikh - Yes, for an app to be rendered in the iframe, it needs to be publicly accessible.
An application within a private network cannot be deployed on MS Teams.
Thanks,
Nivedipa
-----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.