Adding a database running in another VM

I've installed a web app (Bahmni) in VM with IP:

On the other hand, I've installed Metabase on another VM with IP:

Any idea how can I add the db of Bahmni (or any other DB) in Metabase since they don't run in the same VM?

The server with the vm needs to expose the database port so you can connect from the outside. I would suggest you check for guides about how to do this

The port is actually opened and not occupied. The thing is how to put the host...

put the ip address