title: Sipdroid documentation android - STUN server
body: <p>I am currently working on SipDroid for private purposes (yet fully agreeing to the OpenSource licensing). I have several problems with this : aside an enormous lack of documentation, it seems that the project in it's release version can not be built simply easily. 
  I managed though to get it compiled without Eclipse yelling at me.</p>
  
  <p>Now, after adding some heavy logging of the process, it seems the IP adress recovered from the active connection is not correct : which is why I ask this question.</p>
  
  <p>With two devices (HTC magic with 2.2 and Nexus S with 2.3.4) on the same WLAN, the magic returns the public IP, and the Nexus returns his local IP, which is obviously no good for any SIP registration... any idea why i don't get the same data ? </p>
  
  <pre><code>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();
      ...
  </code></pre>
  
  <p>I used a STUN Server to get its correct IP, but now the RTPStream Sender and Receiver are gone mad...</p>
  
  <p>Joining the google group didn't help me a lot and my question is still unanswered... </p>
  
  <p>As googling only brought me tutorials on setting up the app for each and every SIP account,  if any one has any documentation about the SipDroid source it would really be helpful.</p>
  
  <p>Thanks in advance.</p>