title: Peer-Peer communication using wi-fi in android
body: <p>I want to send a message from one android device to another through <code>Wi-Fi</code>.</p>
  
  <p>I have two android devices , and <code>Portable wifi Hotspot</code> is enabled on both. I developed an application which displays a list of availabe <code>wifi devices</code> , and both of the devices lists each other.</p>
  
  <p>Now I want to connect both and send a text from one device to another. What I know is that wifi transmitters transmit a beacon frame , which contains <code>SSID</code> , <code>BSSID</code> etc.</p>
  
  <p>What should I do ? Should I apply a socket operation , but I don't have <code>IP address</code>.</p>