I\'m looking to obtain my own IP address in order to publish that information in to a Peer-to-Peer network. In POSIX/C we have getaddrinfo(NULL, ...), but this
getaddrinfo(NULL, ...)
Did you check ai_next field of returned structure?
ai_next
getaddrinfo() returns linked list of addresses.
getaddrinfo()