android develop app that supports transfering data through different device
<p>i am writing an android drawing app, which supports transfering data from one device to other. How to do it? 
I know android supports socket programming, but how can one device knowanother device's ip address?
I see existing apps like drawing something already have this feature. how did they do to let device one identify another device, using only a facebook account?</p>
