There is a feature on Scratch called Mesh. It allows two or more instances of Scratch to have variables transferred as sensor values.
There is a service called Hamachi that allows you to do this over the internet. Scratch should have a service to do this so we don't have to use Hamachi!
Offline