Unable to log through local ip

Hello everyone,
I just managed to setup DuckDNS and make it work. I can now log through https://mydomain.duckdns.org:8123 both on my iOS App and web browser on my pc.
If i try to log through my local ip (http://192.168.1.6:8123) the browser show a server error, while if i try to log through https://192.168.1.6:8123 the browser says it’s not a secure website (and it should be okay) and i can reach the login interface, but as soon as i login i get the HA logo and “Retry”.
Same on the app: even if i am connected to my wifi it always logs via the external url.
How can i solve this?

EDIT: It seems that (on the same PC) if i go to the https:// i can login, but on Safari i can’t

Browse to https://192.168.1.6:8123 and add a certificate exception to the browser.

The certificate is for the duckDNS domain not the IP address. You know it is correct though so this is safe to do and will be remembered as long as you keep your browser history.

Perfect, so the first problem is solved, many thanks.
What about the “retry”?

Does clearing your browser cache help (Ctrl + F5)?

Apparently not.
It works on Edge, but not on Safari (bot on my Macbook and my iPhone, even after resetting and deleting datas in the browser).

Yeah Safari seems to be a bit overprotective. You could try the first answer here: