Umbrel OS's app internal IP

I wonder if i can use in my application a public-pool IP with variable umbrel will set automatically?

My understanding is that app has to do it manually in exports.sh.

What i am trying to do is to set up API connection from my app to public-pool app without hassling the user about IP and PORT.