It seems that LocalIPList on a Mac (POSIX) returns only a single IP address
even if there are more than one NICs installed. And, to make it more
confusing, it seems to be random as to which one it give you and sometimes
even returns an empty list.

 

I tracked this down to the internal_gethostbyname () and assume this is just
a difference in the OS (compared to Windows). 

 

Note that it seems that gethostbyname() is also a documented as depreciated
function.

 

I switched and used IcsGetInterfaceList() which seems to work. I can toss
out the AF_INET6 records and the local loop back. Note the local loop back
is only return on the Mac, not windows.

 

Bill Florac

 

 

 

 

 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to