connect: replace inet_ntop with getnameinfo