The task is to make the smart home system using the MQTT protocol, read many articles about it and mostly describe how to install and configure Mosquitto, but within the local network, and I am interested in access from the external network. In general, I don’t have a lot of skills using mqtt (or, to be more precise, then 0), so I’m hard to imagine how to do this.
At first, I thought of putting the mqtt server on an external hosting and making a kind of cloud to which data would come and be transmitted for display on the website on the same hosting, but I did not find information on the Internet how to install mqtt on an external hosting. If someone came across a solution to this issue, I will be very grateful if you push me in the right direction.