nsurlErrorEomain-1004 can't connect to HA

Since a few weeks when I try to connect to my HA I get a message:

I can’t connect to my HA not on Wifi not on 4G not with the internal IP not with the duckdns.
I have to restart HA by pulling the plug.
Does anyone know how to solve this problem?