To Use Piserver on your respberry pi copy this code to your raspberry and type
g++ tcpserver.cpp GPIOClass.cpp -o piserver
and then
./piserver
NOTE:- Required root acccess to run this application
Download android client from url https://github.com/Nirmit789/AndroidClient