diff --git a/WhatIsMyIP/IPDetector.m b/WhatIsMyIP/IPDetector.m index db9e9cf..10dc020 100644 --- a/WhatIsMyIP/IPDetector.m +++ b/WhatIsMyIP/IPDetector.m @@ -72,6 +72,8 @@ + (NSString *)getIPAddress while (temp_addr != NULL) { if( temp_addr->ifa_addr->sa_family == AF_INET) { // Check if interface is en0 which is the wifi connection on the iPhone + // en0 iOS wifi + // en1 OS X wifi if ([[NSString stringWithUTF8String:temp_addr->ifa_name] isEqualToString:@"en0"]) { // Get NSString from C String address = [NSString stringWithUTF8String:inet_ntoa(((struct sockaddr_in *)temp_addr->ifa_addr)->sin_addr)];