Possible Duplicate: How do I query the iPhone's current IP address?
How to find ip of iphone device programmatically?