在iphone中查找本地IP地址
问题描述:
可能重复:
如何查询iPhone的当前IP地址?
我正在尝试使用gethostname / gethostbyname查找本地IP地址,但在执行此操作时我总是无法解决。
I'm trying to find the local ip address using gethostname/gethostbyname but I always get "Unable to Resolve" when doing it.
为什么会失败?
还有其他方法可以在iPhone上获取本地IP地址吗?
Why could it be failing? Are there other way to get the local ip address in the iphone?
很多很多