Skip to main content

IPv4 guide

What Is an IPv4 Address? Format, Examples, Advantages, and Limits

what-is-an-ipv4-address-Thumbnail-ilease-site

IPv4 address anatomy

A 32-bit address is not the same thing as an IPv4 packet

An IPv4 address is a 32-bit identifier written as four 8-bit octets separated by periods. A prefix length or subnet mask defines where the network portion ends and the host portion begins.

  • /24 means the first 24 bits identify the network and the remaining 8 bits identify addresses within that subnet; other prefixes move that boundary.
  • The equivalent /24 network mask is 255.255.255.0. Subnet masks describe the address boundary, while an IPv4 packet carries separate IP header fields such as total length, fragment offset, and header checksum.
  • Private networks use reserved IPv4 address space that is not globally routable. Public interfaces need a unique IP address in the relevant routing scope.

What is an IPv4 address?

An IPv4 address is a 32-bit identifier used by Internet Protocol version 4 to address a network interface. Routers read the destination address and a prefix length to decide where to forward a packet. An address helps identify a network location; it does not identify a person, prove ownership, or make a service reachable by itself.

Humans normally write the 32 bits as four decimal octets separated by periods, such as 192.0.2.25. Each octet represents 8 bits and can range from 0 to 255. The example is from TEST-NET-1, a block reserved for documentation, so it is safe to use in diagrams and examples.

IPv4 address format and example

How to read the example 192.0.2.25/24
PartValueMeaning
Address192.0.2.25Four decimal octets representing 32 bits
Prefix length/24The first 24 bits identify the routing prefix
Subnet mask255.255.255.0Another way to express the same 24-bit prefix
Prefix192.0.2.0/24The complete block described by the address and prefix length

The address alone is incomplete routing information. Modern networks use classless addressing, so the leading digits do not reveal the network boundary. The prefix length or subnet mask must be supplied. A /24 is only one example; IPv4 prefixes can use other lengths depending on the network design.

Learn how prefix length changes address capacity in the subnetting guide.

An IPv4 address is not an IPv4 packet

An address is one value carried inside an IPv4 packet header. The packet also has fields such as source address, destination address, protocol, time to live, total length, fragmentation information, and a header checksum. Those fields describe delivery of a datagram; they are not parts of the address itself.

IPv4 provides best-effort packet delivery. It does not provide end-to-end reliability, sequencing, retransmission, encryption, or identity on its own. TCP, UDP, IPsec, TLS, applications, and network controls provide different functions above or alongside IP.

IPv4 address scopes and special-use ranges

“Public” and “private” are useful starting labels, but IPv4 contains several special-purpose ranges. Assignment, routing, filtering, and translation determine how an address can actually be used.

Common IPv4 address scopes
Range or examplePurposeGlobally reachable by default?
Public address spaceGlobally unique space allocated or assigned through Internet registries and providersPotentially, when authorized and routed; not guaranteed
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16Private use under RFC 1918No
127.0.0.0/8Loopback on the local hostNo
169.254.0.0/16IPv4 link-local communicationNo
100.64.0.0/10Shared address space commonly used between a provider and subscribersNo
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24Documentation examplesNo

Private addresses can be reused inside different networks because they are not globally unique. A network commonly uses NAT or PAT to let private endpoints initiate traffic through one or more public addresses. NAT changes the address and often the port visible across the boundary; it is not encryption or a firewall.

See the public versus private IP guide for routing, NAT, and reachability details.

What are the advantages of IPv4?

IPv4 remains useful because it is widely deployed and understood, not because it is automatically faster or more secure than IPv6.

  • Broad compatibility: Networks, operating systems, applications, monitoring tools, and support teams have decades of IPv4 deployment experience.
  • Mature operations: Address management, routing, DNS, firewall, observability, and troubleshooting workflows are available across most infrastructure platforms.
  • Compact base header: An IPv4 header can be 20 bytes without options. This is smaller than the fixed 40-byte IPv6 base header, although real performance depends on the full path, extensions, transport, workload, and implementation.
  • Private address reuse: RFC 1918 addressing and NAT let many internal endpoints share a smaller public IPv4 pool. This conserves public addresses but introduces translation state and operational tradeoffs.
  • Incremental coexistence: Dual-stack and translation designs let organizations keep IPv4 connectivity while adding IPv6 according to application and partner readiness.

These are deployment advantages, not guarantees. IPv4 does not inherently provide stronger security, easier configuration, better quality of service, or flawless delivery.

What are the limitations of IPv4?

  • Finite address space: A 32-bit address field contains 232, or 4,294,967,296, possible values before reserved and special-purpose space is considered. Public scarcity affects acquisition, allocation, and network design.
  • Address sharing adds state: NAT and CGNAT can conserve public addresses, but port capacity, logs, inbound reachability, application behavior, failover, and attribution become more complex.
  • Security is separate: An IPv4 address does not authenticate a user, authorize a route, encrypt traffic, or apply firewall policy.
  • Renumbering can be costly: Hard-coded addresses, allowlists, DNS records, certificates, logs, and partner systems can turn an address change into a coordinated migration.
  • Fragmentation and path behavior need care: MTU differences, filtering, and middleboxes can cause failures that are easy to misdiagnose.

IPv4 vs IPv6

Key IPv4 and IPv6 differences
CharacteristicIPv4IPv6
Address length32 bits128 bits
Common notationDotted decimal, such as 192.0.2.25Colon-separated hexadecimal, such as 2001:db8::25
Base header20 bytes minimum; options can make it longer40 bytes fixed; optional information uses extension headers
Address conservationPrivate addressing and NAT are common responses to scarcityMuch larger address space reduces the need for conservation through address sharing
BroadcastSupports broadcast in defined scopesUses multicast instead of broadcast

IPv6 does not make IPv4 disappear immediately, and neither protocol makes a network secure by default. Many organizations run both. The right migration plan depends on application support, upstream connectivity, DNS, security controls, observability, partners, and rollback needs.

What should you verify before using an IPv4 address or block?

  1. Prefix: Record the exact address and prefix length. Do not infer a classful boundary from the first octet.
  2. Scope: Check whether the address is public, private, shared, loopback, link-local, documentation, multicast, or another special purpose.
  3. Authority: For public resources, verify current registry records, contractual rights, and the party authorized to announce or delegate the prefix.
  4. Routing: Confirm the origin ASN, route acceptance, IRR and RPKI responsibilities, upstream filters, failover, and minimum accepted prefix.
  5. Services: Plan forward and reverse DNS, firewall policy, NAT, monitoring, geolocation, reputation, and abuse contacts separately.
  6. Lifecycle: Define activation, evidence dates, renewal, transfer or return, renumbering, and rollback before production use.

The Regional Internet Registry guide explains the registration system. If you need routable capacity, compare the operating responsibilities in the IPv4 leasing guide before treating an address listing as deployment-ready.

IPv4 address FAQ

Is an IPv4 address always public?

No. IPv4 includes public space, the three RFC 1918 private blocks, loopback, link-local, shared, documentation, multicast, and other special-purpose ranges. An address must be interpreted with its prefix, scope, assignment, and routing context.

How many numbers are in an IPv4 address?

The common notation has four decimal octets separated by periods. Each octet is a number from 0 to 255 and represents 8 bits, for a total of 32 bits.

Does an IPv4 address identify a person or device?

No. An address identifies a network-layer location for a period of time. It may represent an interface, router, NAT gateway, proxy, VPN exit, shared service, or many subscribers. Attribution needs authorized logs, timestamps, ports, protocol, assignment records, and corroborating evidence.

Is 192.168.1.1 a public IPv4 address?

No. It falls within 192.168.0.0/16, one of the private-use blocks reserved by RFC 1918. Different private networks can reuse it, so it is not globally unique or routed on the public Internet.

Is IPv4 obsolete?

No. IPv4 remains widely deployed, but its address scarcity and address-sharing costs are important constraints. IPv6 provides a much larger address space. Many networks use dual stack or translation while applications and partners move at different speeds.

Primary technical sources

Tags

  • #ipv4