I need to find out the local IP address on a very old platform which doesn\'t have getifaddrs(). Lots of people recommend to do this by creating a UDP socket,
getifaddrs()