Network

What Is an IP Address? IPv4 vs IPv6 Explained

Understand IPv4 and IPv6 addresses, public and private ranges, NAT, and static versus dynamic assignment without confusing an address with a device identity.

ip-addressnetworkingipv4ipv6devops

What Is an IP Address? IPv4 vs IPv6 Explained

An IP (Internet Protocol) address identifies a network interface for routing within a particular scope. It is not a permanent identifier for a device or person; devices can have multiple addresses, and addresses can be reassigned. IPv4 addresses look like 192.168.1.1 — four numbers from 0–255. IPv6 addresses use hexadecimal notation and a much larger address space.

Here's what an IP address is, the two versions in use, and the key distinctions you'll run into.

What an IP Address Does

Every device that communicates on a network needs an address, just like a house needs a mailing address. When you load a website, your device's IP is the "return address" so the server's response finds its way back. IP addresses make routing — moving packets across networks — possible.

IPv4: The Familiar Format

IPv4 is 32 bits, written as four numbers (octets) separated by dots:

192.168.1.1

Each octet ranges 0–255, giving about 4.3 billion possible addresses. Under the hood it's just binary — 192.168.1.1 is 11000000.10101000.00000001.00000001. See it for yourself with our IP to Binary tool.

The problem: 4.3 billion addresses isn't enough for today's internet, which led to IPv6 and workarounds like NAT and private addressing.

IPv6: The Bigger Address Space

IPv6 is 128 bits, written as eight groups of hex digits:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

That's roughly 340 undecillion possible values. IPv6 generally reduces the need to conserve public addresses through NAT, but some deployments still use translation or other gateways. IPv4 and IPv6 often run alongside each other.

Public vs Private IP Addresses

  • Public IP — globally routable, assigned through an ISP or hosting provider. A public address can be shared by several users behind a provider's NAT.
  • Private IPv4 address — used inside a network and not globally routed on the public internet. RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

A common home IPv4 setup gives devices private addresses and uses NAT at the router to share an upstream public address. Some providers add carrier-grade NAT, so the router itself may not have a public IPv4 address.

Static vs Dynamic IP Addresses

  • Dynamic — assigned automatically by DHCP and may change over time. The default for most devices.
  • Static — configured or reserved to stay stable until an administrator or provider changes it; useful for reachable services.

See What Is a Static IP Address? for when you need one.

Subnets and CIDR

Networks are divided into subnets using a subnet mask or CIDR notation (192.168.1.0/24). This controls how many addresses a network holds and how routing decisions are made. Plan them with our Subnet Calculator and CIDR Calculator, and read Subnet Mask Cheat Sheet and CIDR Notation Explained.

Frequently Asked Questions

What is an IP address? An address used to route packets to a network interface within its addressing scope. It can change and does not uniquely identify a person.

What does an IP address look like? IPv4 looks like 192.168.1.1 (four numbers 0–255); IPv6 looks like 2001:0db8:85a3::8a2e:0370:7334 (eight hex groups).

What is the difference between IPv4 and IPv6? IPv4 uses 32-bit addresses; IPv6 uses 128-bit addresses. They have different notation and deployment behavior, and many networks support both.

What is the difference between a public and private IP? A public IP is intended for routing on the internet; an IPv4 private address is used inside networks and needs translation or tunneling to communicate with public services.

Can an IP address identify me? It can reveal your approximate location and ISP, but not your exact identity by itself. A public IP is tied to your network, not your name.

Related Reading

An IP address is simply the address of a device on a network. Master IPv4 vs IPv6 and public vs private, and the rest of networking — subnets, NAT, routing — starts falling into place.