Home Assistant Application Multiple Ip

Hi. I am using Home Assistant Application on phone. Is there any way to enter two ip in app? Application could try to connect which one is best. My internet connection is not stable, therfore I want to use internal ip while I am at home and want to use external ip to control from internet. Thanks.