#include int main(void) { CREATE_AUTORELEASE_POOL(pool); NSEnumerator *e; NSHost *host = [NSHost hostWithName:@"localhost"]; NSString *hostAddr; e = [[host addresses] objectEnumerator]; NSLog(@"%@", [e nextObject]); while ((hostAddr = [e nextObject])) { NSLog(@"Found Address: %@", hostAddr); } RELEASE(pool); return 0; }