Allow building with no external IP address

62d0b3d4 introduced a dependency on the availability of an external IP address, via getaddrinfo()
This breaks building when only a loopback address is available, such as on a VM or subway.