12
I have to create a field in a mysql table to store ip addresses. I need to know the maximum characters an ip address can possibly be. Whether ipv4, ipv6 or some other type that can render a valid ip address unusually long. So what should I set the character limit to?
I am asking for length in the sense that the word "foo" has 3 characters, not in terms of bytes or anything like that.
Please move to stackoverflow.com: it is a programming question – usr-local-ΕΨΗΕΛΩΝ – 2014-11-07T14:46:20.170
Here is an answer showing the IPv6 address can be up to 45 characters long: https://stackoverflow.com/questions/1076714/max-length-for-client-ip-address#answer-7477384
– still_dreaming_1 – 2017-07-25T16:41:11.210