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.