Home Assistant Cloud keeps discounted

My internet connection is very good (fiber) but I face issue with the cloud connectivity where from time to time I have to access home assistant through the internal network and go to configuration - > home assistant cloud, and then it gets connected to the cloud.
So how can I make sure that the cloud keeps connected all the time?