Finding local ip address in the iphone
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/260484/how-do-i-query-the-iphones-current-ip-address">How do I query the iPhone&#39;s current IP address?</a>  </p>
</blockquote>



<p>I'm trying to find the local ip address using gethostname/gethostbyname but I always get "Unable to Resolve" when doing it.</p>

<p>Why could it be failing?
Are there other way to get the local ip address in the iphone?</p>

<p>Thx a lot</p>
