I've done something like this. Wrote an android app that sends UDP data real time to 3DGS. But this was only in local home network. I've done this with socket_... instructions, but I really don't know how to extend this to work also over Internet.