I figure that by doing it this way my gadgets only need to set up a HTTP connection with the server which doesn't require them to be exposed through my router's firewall, yet effectively makes them accessible via a specific URL, from any local or remote internet access point.
I think I need to learn some basics about security, and persistent connections so any advice will be greatly appreciated. Obviously I also need to write a PHP script or something that will run on the server.