title: android receive and send data through wifi connection to hardware
body: <p>Actually I want to send data from a hardware piece to an android device.
  The hardware device is connected to local wireless router which is connected to modem.
  Android device will also connected to same router through WI-FI.
  Can you please suggest some links or tutorial from where i can get idea how to establish communication between hardware device an the android device to send and receive data through WI-FI .Please Help any sample code or links</p>