Power bi conection preblem to MongoDB

You can get a list of all possible IP’s with Return All IP Addresses for One Project

Or you could configure the hostname in your firewall instead of a IP.

Or have a look at Set Up a Private Endpoint for a Federated Database Instance