title: Get IP and name of devices on WIFI
body: <p>I'm working on a little application, the first step is to get IP and name of all devices connected to my wifi.
  Actually I'm able to get only the BSSID of some devices in my wifi but not all</p>
  
  <p>code is:</p>
  
  <pre><code> WifiManager wifi = (WifiManager)getSystemService(Context.WIFI_SERVICE);
              List&lt;ScanResult&gt; a=wifi.getScanResults();
              int j=0;
  
              while(j&lt;a.size()){
                  System.out.println(a.get(j).SSID);
                  j++;
              }
  </code></pre>
  
  <p>how can I get what i want?</p>