title: Get android device name defined by user over wifi
body: <p>In my Android app I want to detect all Android device names found in the local wireless network. I am able to scan the network and find the devices IP and full qualified domain name (FQDN) like <code>android-2120ee3b45******</code>. I'm doing it like:</p>
  
  <pre><code>final InetAddress inetAddress = InetAddress.getByName(ip);
  if (inetAddress.isReachable(400)) {
      final String host = inetAddress.getHostName();
      final String canHost = inetAddress.getCanonicalHostName();
      final String ip = inetAddress.getAddress();
  }
  </code></pre>
  
  <p>With <code>java.net.InetAddress</code> I only get the IP and the network name like <code>android-2120ee3b45******</code>. But I want the Android device name defined by the user on the device like "<strong>Peters Fire TV</strong>" or "<strong>Mikes Samsung SGS6</strong>". I saw apps like AllConnect or AllCast which can grab such name from Fire TV (which is a android device).</p>
  
  <p>How can I get the Android device name defined by the user over the WIFI network?</p>