So I convert the user's IP address [which is pretty much always in ipv4 format] using inet_pton()
and then store in it mySQL using binary(16)
, now when i extract that row/column, and use inet_ntop
it creates a different format [and not the regular 192.123.1.0
etc...], such as 4c78:472a::
Why is this? And how can I fix it?