Bi-directional communication between Client and Server, using ServerSocket, Socket, DataInputStream and DataOutputStream
http://android-er.blogspot.com/2014/08/bi-directional-communication-between.html
Transfer image between Android devices, via Socket
http://www.tuicool.com/articles/aMn2Yf