Reputation: 21
i need to get the ip address from the given host name. For example,if "google.com" is given i need the ip address of google.com. How to achive this in iphone?
Upvotes: 2
Views: 1261
Reputation: 523684
Do it like any other POSIX systems, i.e. use getaddrinfo()
(See http://en.wikipedia.org/wiki/Getaddrinfo).
Upvotes: 0