Getting the IP address of client or getting the information(SSID) of Clients connected to Hotspot Android (after Tethering)
<p>I got the program for Wifi tethering which i got a open (non secured) hot spot in Android. I like to view the details of client (SSID and IP address) connected to my hotspot. 
I used SocketAddress socketid=socket.getLocalSocketAddress(); and also used </p>

<pre><code>public  void getLocalIpAddressString() {
   try {
       for (Enumeration&lt;NetworkInterface&gt; en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
          NetworkInterface intf = en.nextElement();
          for (Enumeration&lt;InetAddress&gt; enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
                InetAddress inetAddress = enumIpAddr.nextElement();
               if (!inetAddress.isLoopbackAddress()) {
                   // return inetAddress.getHostAddress().toString();
                    Toast.makeText(getApplicationContext(), inetAddress.getHostAddress().toString(),
                            Toast.LENGTH_SHORT).show();

                }
           }
        }
    } catch (Exception ex) {
      Log.e("IPADDRESS", ex.toString());
   }
  // return null;
   }
</code></pre>

<p>These will return only the local IP but can you please help me in getting the IP address of client connected to my Wifi Hotspot. Thank you.</p>
