replace inet_ntop with ip_to_string which deals with sockaddr_storage instead of in[6]_addrs