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, ...)
If you know the name your host, you can use gethostbyname to get the ip address.