iPhone Development

iPhone development is going nuts! All the apps, all the possibilities. Objective-C is the language. The SDK is out. Shops are springing up everywhere developing iPhone apps. Come join us, share and learn!

URL -> IP Address

I'm working on an iPad app, and I need to go from a URL such as www.mysite.com to the IP Address and port, 12.34.56.78   port 123 or so.

Has anyone done this?  I know this is a well defined (and most likely common) task, but I haven't made any headway figuring out how to do it. 

Worth noting I am still on iOS 3.2, we're not ready for iOS 4.0 yet.

  • up

    Kevin Neelands

    Isn't it funny how you can figure out something thats had you stumped all day after you post a request for help? Kinda like searching the store for spicy mustard, only to have the stockboy point to the shelf directly in front of you when you ask where it is. Turns out the old-fashioned C function getaddrinfo() was all I needed.