I write this post because I noticed that with my new ISP, I can’t use ddns, neither connect to my router from internet. Why? Because my ISP (I have a mobile 4g network) puts my network connection behind a CGNAT. And… What is a CGNAT? To simplify, your router, is behind a “bigger” companies router, and this one, is connected to the internet, so you doesn’t have a public ip address accessible from the outer internet.
What is ZeroTier?
ZeroTier is a virtual private network (VPN) tool that allows you to securely connect devices and networks over the Internet. It is a software network solution that uses a “software-defined networking” approach to provide a private, secure, and scalable network that can be used by any device that is connected to the Internet.
How to install ZeroTier
Create an account: ZeroTier – Global Area Networking
Login and create a new network (remember the network id)

Install the ZeroTier app into your device (ubuntu, windows, ios, android, etc) and configure your network id
sudo apt update
sudo apt install snapd
sudo snap install zerotier
zerotier-cli join [NETWORKID]
Return to your account on ZeroTier web page and inside the network, under the Members tab, allow the new device.
That’s all, you have created your vpn, connect to your vpn from where you want, and will be able to see the other devices.
HommeAssistant
I went through this error when I tried to access my hommeassistant server from outside my network.
Here you have the hommeassistant plugin.