title: Finding the IP address of Galaxy Tab 10.1 for application
body: <p>I've written an app for HTC desire and it gets the devices IP address and prints it to the screen. When I install this app to my tab 10.1 the IP address come out in letter and numbers in a strange format? </p>
  
  <pre><code>private String getIpAddress()
      {
          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(); }
                  }
              }
          }
          catch(SocketException ex)
          {
              Log.e(TAG , ex.toString());
          }
          return null;
      }
  </code></pre>
  
  <p>What is different on the tab 10.1?</p>
  
  <p>( IP returned - fe80::be47:60ff:feff:21e2)</p>
  
  <p>Needs to be an IP address as this is what I pass to the terminal on PC to connect to my app.</p>