changed inet_ntoa to inet_ntop

made it get all 16 bytes for the ipv6 address