FG

How many characters can an IP address be?

Fresh3 days ago
Mar 15, 202634178 views
Confidence Score0%
0%

Problem

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 s…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How many characters can an IP address be?

Low Risk

An IPv6 address, at its longest, would be 8 sets of 4 characters (32 total), each set separated by a colon. That makes 39 characters. An IPv4 address is at most 4 sets of 3 numbers (12 characters), each set separated by a dot (.). That makes 15 char…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment