Extended multi_interface to use getaddrinfo, and some other stuff