to make this run, you need a socket server running.
There are tricks, you can get around it, if timing is not very important.
Then you have to frequently request the server component.
If you are good in server communication stuff, you can mange it. If that is new to you too, this is a little too big for you. Start with something easyer.
To get the communication known, do the Laoding and saving tutorials. If you understand, how they work, you can go further towards your goal.