An IP address is a numerical address that identifies a network interface and helps routers deliver packets to their destination. IP stands for Internet Protocol. A packet carries source and destination IP addresses so that hosts and routers can process traffic between networks.
A laptop might use 10.24.8.15 on an office network. A server might have a public address that clients reach over the internet. One device can have several addresses, and many subscribers can share a public IPv4 address through address translation. An address therefore identifies a point in a network; identifying a person or a particular application requires more information.
What Is an IP Address Used For?
The purpose of an IP address is to support addressing and routing at the network layer. Routers compare a packet's destination with their routing tables and forward it toward the appropriate next hop. The receiving host processes packets addressed to it, and applications can send replies to the source address.
Network engineers also use addresses to define access rules, organize subnets and investigate connection failures. Application developers use them when binding services to interfaces or connecting to remote endpoints. Operators and IPv4 brokers work with address blocks when allocating capacity or arranging transfers.
An IP address alone does not identify a TCP or UDP application. Transport protocols add port numbers: a server can accept HTTPS connections on TCP port 443 while using the same IP address for other services. IP also provides no guarantee that a packet will arrive or that packets will arrive in order. RFC 791 describes the IPv4 delivery model.
What Does an IP Address Look Like?
IPv4 and IPv6 use different address lengths and written formats. IANA's number resources overview defines IPv4 addresses as 32-bit numbers and IPv6 addresses as 128-bit numbers.
| Property | IPv4 | IPv6 |
|---|---|---|
| Address length | 32 bits | 128 bits |
| Written format | Four decimal octets separated by dots | Hexadecimal groups separated by colons |
| Example for documentation | 192.0.2.10 | 2001:db8::10 |
| Total address combinations | 2^32, about 4.29 billion | 2^128, about 3.40 × 10^38 |
Each IPv4 octet represents eight bits and has a decimal value from 0 to 255. In an IPv6 address, each full hexadecimal group represents 16 bits. You can omit leading zeros within a group and replace one consecutive run of all-zero groups with ::.
For example, 2001:db8:0:0:0:0:0:10 can be written as 2001:db8::10. The shortened notation preserves the same 128-bit address. RFC 4291, Section 2.2 defines these representations.
Both examples in the table come from documentation ranges. They illustrate address syntax without pointing readers to a live customer or server. The IPv4 and IPv6 glossary pages explain each protocol in more detail.
Subnet Masks and CIDR Prefixes
A subnet groups addresses under a shared network prefix. The prefix length tells you how many leading bits belong to that prefix. An IPv4 subnet mask expresses the same boundary using a dotted decimal value.
Consider 10.24.8.15/24. The /24 prefix means that the first 24 bits identify the subnet, leaving eight bits for addresses within it. Its subnet mask is 255.255.255.0, and its network prefix is 10.24.8.0/24.
The binary mask is:
11111111.11111111.11111111.00000000Applying a bitwise AND between the address and mask gives the network address. For a conventional IPv4 /24 LAN, the 256 address combinations include the network address .0 and subnet broadcast address .255, leaving .1 through .254 for host interfaces. The /31 point-to-point and /32 host-route cases follow different rules.
Classless Inter-Domain Routing, or CIDR, uses prefix notation for address blocks and route aggregation. IPv4 block sizes follow 2^(32 − prefix length): a /24 contains 256 addresses, a /23 contains 512, and a /22 contains 1,024. These are total address counts; assignable host counts depend on the subnet design.
IPv6 uses prefix lengths too. A /64 leaves 64 address bits after the prefix. IPv6 has no broadcast address, so the IPv4 rule of subtracting a network and broadcast address does not apply. Engineers use multicast where the protocol calls for group delivery. RFC 4291, Sections 2 and 2.3 explains IPv6 address types and prefixes.
What Is the Gateway IP Address?
The gateway IP address is the address of a router that a host uses as a next hop to reach another network. The default gateway handles destinations for which the host has no more specific route. The default route is 0.0.0.0/0 for IPv4 or ::/0 for IPv6; the gateway is the next-hop router's address. A gateway address can be a private address on a local network.
For an office laptop, the settings might be:
- IP address:
10.24.8.15 - Prefix:
/24, or subnet mask255.255.255.0 - Default gateway:
10.24.8.1
The laptop can reach another host in 10.24.8.0/24 over the local link. For a remote destination, it sends the packet to 10.24.8.1 if the default route is the matching route. On an Ethernet LAN, ARP resolves the next hop's IPv4 address to a MAC address.
Forwarding a packet through a router does not by itself replace its destination IP with the gateway IP. The gateway is the next hop; the destination still identifies the remote endpoint unless a mechanism such as NAT changes it. RFC 1122, Section 3.3.1 describes host routing decisions.
There is no universal gateway address. Values such as 192.168.1.1 are conventions in some networks. Check the active interface and routing table for the configured gateway. IPv6 hosts can learn default routers through Router Advertisements, often using the router's link-local address as the next hop. RFC 4861 defines IPv6 Neighbor Discovery.
Public and Private IP Addresses
A public IP address belongs to address space intended for globally unique internet communication. Reaching a service at that address also requires suitable routing and access rules. A public address does not guarantee that a firewall permits an incoming connection.
Private IPv4 addresses support communication within administrative networks. RFC 1918 reserves three ranges:
10.0.0.0/8, containing 16,777,216 addresses.172.16.0.0/12, containing 1,048,576 addresses.192.168.0.0/16, containing 65,536 addresses.
Organizations can reuse these ranges in separate networks. Overlapping ranges need attention when connecting those networks, such as during a merger or VPN rollout. Private IPv4 addresses do not provide globally unique internet destinations; networks often use NAT to connect private-addressed hosts to IPv4 internet services.
IPv6 provides global unicast addresses and addresses with narrower scopes, including link-local and unique-local addresses. A host can use a global IPv6 address on an internal network while a firewall controls access. Treating every local device address as private would miss this distinction.
How Many Public IP Addresses Are There?
The complete IPv4 space contains 4,294,967,296 addresses. Only part of that space can serve as ordinary public unicast addresses.
Two large exclusions are 224.0.0.0/4 for multicast and 240.0.0.0/4 for reserved use. Each contains 268,435,456 addresses. Subtracting these alone leaves 3,758,096,384 combinations, before removing private, loopback and other special-purpose ranges. This calculation gives an upper bound, not a count of addresses that operators can buy or deploy. The IANA IPv4 Address Space registry records the large allocations and reservations.
Three different quantities matter in practice:
- Address space suitable for public unicast: excludes ranges with other defined purposes.
- Address space visible in routing: depends on the prefixes announced at a given time and the observer's view.
- Address space available to acquire or lease: depends on holders, registry policies and available supply.
A registry allocation does not prove that the entire block has an active internet route. An active route does not establish that the holder offers those addresses for transfer. Capacity planning and brokerage require these distinctions, rather than a single headline number for “available IPv4.”
Reserved and Special-Purpose Address Ranges
Special-purpose addresses cover several categories. Private addressing is one category; loopback, documentation, multicast and provider shared space serve different purposes. RFC 6890 explains the special-purpose registry model.
IPv4 Ranges
| Range | Purpose | Practical meaning |
|---|---|---|
| 0.0.0.0/8 | This-network addressing | Special source-address uses; not ordinary public hosts |
| 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16 | Private use | Reusable addressing within private networks |
| 100.64.0.0/10 | Provider shared space | Addressing between CGN and customer equipment |
| 127.0.0.0/8 | Loopback | Communication within a host, including 127.0.0.1 |
| 169.254.0.0/16 | Link-local | IPv4 communication confined to a local link |
| 192.0.0.0/24 | IETF protocol assignments | More specific reservations define permitted uses |
| 192.0.2.0/24; 198.51.100.0/24; 203.0.113.0/24 | Documentation | Examples rather than production addressing |
| 198.18.0.0/15 | Benchmarking | Controlled network performance tests |
| 224.0.0.0/4 | Multicast | Delivery to multicast groups |
| 240.0.0.0/4 | Reserved | Unavailable for ordinary public unicast use |
| 255.255.255.255/32 | Limited broadcast | Broadcast on the local network |
The current IANA IPv4 special-purpose registry also lists service-specific assignments such as AS112, AMT, PCP/TURN anycast and NAT64 discovery, plus deprecated transition allocations. Some special-purpose entries permit global reachability. Apply each entry's rules instead of treating “special-purpose” as a blanket instruction to block it.
In particular, 100.64.0.0/10 is distinct from RFC 1918 private space. RFC 6598 reserves it for service-provider shared addressing associated with CGN deployments.
IPv6 Ranges
| Range | Purpose | Practical meaning |
|---|---|---|
| ::/128 | Unspecified | Indicates the absence of an assigned address in defined contexts |
| ::1/128 | Loopback | Reaches the same host |
| fe80::/10 | Link-local | Communication on one link; routers do not forward it to another link |
| fc00::/7 | Unique-local | Local addressing without global internet routing |
| ff00::/8 | Multicast | Delivery to a group of interfaces |
| 2001:db8::/32; 3fff::/20 | Documentation | Address examples and technical documentation |
| 64:ff9b::/96 | IPv4/IPv6 translation | Well-Known Prefix used in translation architectures |
The IANA IPv6 special-purpose registry includes further assignments for benchmarking, transition protocols, discard-only use and specific services. Engineers should consult the relevant entry before using a special prefix in an address plan.
How Are IP Addresses Assigned?
IANA coordinates global number resources, while five Regional Internet Registries administer resources for their regions: AFRINIC, APNIC, ARIN, LACNIC and the RIPE NCC. Providers and other organizations obtain resources through the applicable registry system, then allocate or assign addresses within their networks.
IPv4 transfers follow registry-specific procedures. For example, ARIN documents separate transfer processes for different circumstances. A broker can help parties arrange a transaction; the applicable registry's process governs the registration change. Registration, route announcement and DNS configuration are separate tasks.
At the device level, engineers can configure addresses by hand or use automatic configuration. DHCPv4 can supply an IPv4 address, subnet mask and other settings. A DHCP reservation can give a device a consistent address without manual configuration on that device. IPv6 hosts can use Stateless Address Autoconfiguration and, where configured, DHCPv6.
Static describes an address intended to remain stable. Dynamic describes an assignment that can change. These terms do not determine whether an address is public or private, and automatic configuration does not require the address to change on each connection.
Shared IP Addresses, NAT and CGNAT
Multiple private-addressed devices can share one public IPv4 address through Network Address and Port Translation. The translator tracks mappings between internal addresses and ports and their external counterparts.
An ISP can extend sharing across subscriber connections with Carrier-Grade NAT. In that design, the public address visible to a website may represent customers from many households. The address on a customer's router WAN interface may be a provider shared-space address, while an external IP-check service sees the translated public address.
Sharing affects operations and application design. An IP-only rate limit can group unrelated users behind CGNAT. An abuse investigation can require the public address, source port, protocol and timestamp, together with the operator's translation and subscriber records. Applications should combine IP signals with account and session context rather than treating an address as a unique user identifier. RFC 6888 describes requirements for CGN behavior, including logging considerations.
Operators deciding how to extend IPv4 capacity need to consider public address supply, port demand and logging alongside IPv6 deployment. The IPv4 Economics hub covers those planning decisions. NFWare Virtual CGNAT provides NAT44 and NAT64 for operator networks; the translation architecture and address plan determine how those functions fit a deployment.
Frequently Asked Questions
What Does IP Address Mean?
IP address means Internet Protocol address. It is the numerical address used at the IP layer to identify an interface and address packets. It can change as a device joins different networks, and one interface can have multiple addresses.
What Is the Difference Between an IP Address and a Domain Name?
A domain name is a name such as example.com. DNS can return IPv4 or IPv6 addresses associated with that name. Several domains can use the same address, and one domain can resolve to several addresses. A public IP therefore does not identify a unique website.
Is the Gateway IP Address the Same as My Public IP?
They describe different roles. A home router might use 192.168.1.1 as the LAN gateway address and another address on its WAN interface. With ISP-level CGNAT, that WAN address can also differ from the public address that websites see.
Can Two Devices Have the Same IP Address?
Separate private networks can reuse addresses such as 10.0.0.10. Within a conventional unicast subnet, conflicting assignments can disrupt connectivity. Devices can also share an external IPv4 address through NAT, which distinguishes their translations using additional information such as ports.