DuckDns and Mobile App

Hello people

Since I started to access HA through DuckDns I can no longer access the system through mobile app locally only externally. This is very bad because I have several automations that are done according to the status of my cell phone, because now that I can no longer access the HA locally, there is no return due to the mobile app no ​​longer accessing the HA locally. Would anyone have any solution for this?