Not much to go after in that description.
There are like 100 guides to do such setup and every little one have there special thing.
It looks like you are setting up an unencrypted port and opening up to the internet and maybe it is lucky that you did not succeeded.
Portforwarding is really something you should think a few extra times over before doing it and it should definitely be encrypted then.
If at all possible, then go with a VPN setup instead.
Port 443 is for HTTPS, which require a certificate and there is nothing in your description that mention a certificate setup.
Also remember that HA can only run one type of connection setup itself, which means it is either HTTP or HTTPS.
If you want both, then HA have to run HTTP and you would then have to run a proxy to supply a HTTPS to HTTP bridge, like NGinX.
…for the record -please don’t do that. It literally takes microseconds to be pwnd. Chances are nothing happens - especially since this isn’t a windows box. But within seconds of opening the port you can expect port scans to start…
You can’t put an unprotected box on the Internet and expect it to be safe these days. Plan security from the start and if you don’t understand it don’t do it.
The Duck Dns Add On creates certs using Lets Encrypt. I know how to set up the https connection. But I dont know where my mistake is. I mean my homeassistant wont show the login page after restart