Possible Duplicate:
How do I query the iPhone's current IP address?
I'm trying to find the local ip address using gethostname/gethostbyname but I always get "Unable to Resolve" when doing it.
Why could it be failing? Are there other way to get the local ip address in the iphone?
Thx a lot