What is an IP address? Every machine on a network has a unique identifier. Just as you would address a letter to send in the mail, computers use the unique identifier to send data to specific computers on a network.
Most networks today, including all computers on the internet, use the TCP/IP protocol as the standard for how to communicate on the network. In the TCP/IP protocol, the unique identifier for a computer is called its IP address.
There are two standards for IP addresses: IP Version 4 (IPv4) and IP Version 6 (IPv6). All computers with IP addresses have an IPv4 address, and most use the new IPv6 address system as well. Here are the differences between the two address types:
At the dawn of IPv4 addressing, the internet wasn't the large commercial sensation it is today, and most networks were private and closed off from other networks around the world. When the internet exploded, having only 32 bits to identify a unique internet address caused concerns that we'd run out of IP addresses before long.
Under IPv4, there are 232 possible combinations, which offers just under 4.3 billion unique addresses. IPv6 raised that to a stress-relieving 2,128 possible addresses. Later, we'll take a closer look at how to understand your computer's IPv4 or IPv6 addresses.
How Computers Get IP Addresses
An IP address can be either dynamic or static. A static address is a permanently assigned address. A static IP address that is assigned by an internet service provider is rare. You can assign static IP addresses to devices on your local network, but it can create network issues if you use it without a good understanding of TCP/IP.
Dynamic IP addresses are the most common. They're assigned by the Dynamic Host Configuration Protocol (DHCP), a service running on the network. DHCP typically runs on network hardware such as routers or dedicated DHCP servers.
A dynamic IP address is issued using a leasing system, meaning that the IP address is only active for a limited time. If the lease expires, the computer will automatically request a new lease. Sometimes, this means the computer will get a new IP address, too, especially if the computer was unplugged from the network between leases.
This process is usually transparent to the user unless the computer warns about an IP address conflict on the network (two computers with the same IP address). An address conflict is rare, and today's technology typically fixes the problem automatically.
Next, let's take a closer look at the important parts of an IP address and the special roles of certain addresses.
A diagram of an IP address (IPv4). Wikimedia Commons
Earlier, you read that IPv4 addresses represent four eight-digit binary numbers. That means that each number could be 00000000 to 11111111 in binary, or 0 to 255 in decimal (base-10). In other words, 0.0.0.0 to 255.255.255.255.
However, some numbers in that range are reserved for specific purposes on TCP/IP networks. These reservations are recognized by the authority on TCP/IP addressing, the internet Assigned Numbers Authority (IANA). Four specific reservations include the following:
The other IP address reservations are for subnet classes. A subnetwork is a smaller network of computers connected to a larger network through a router. The subnet can have its own address system so computers on the same subnet can communicate quickly without sending data across the larger network.
A router on a TCP/IP network, including the internet, is configured to recognize one or more subnets and route network traffic appropriately. The following are the IP addresses reserved for subnets:
The first three (within Classes A, B and C) are those most used in creating subnets. Later, we'll see how a subnet uses these addresses. The IANA has outlined specific uses for multicast addresses within internet Engineering Task Force (IETF) document RFC 5771. However, it hasn't designated a purpose or future plan for Class E addresses since it reserved the block in its 1989 document RFC 1112. Before IPv6, the internet was filled with debate about whether the IANA should release Class E for general use.
Next, let's see how subnets work and find out who has those non-reserved IP addresses out on the internet.
Finding Your IP AddressIn Windows, search for "cmd" (without the quotes) using Windows search and hit Enter. In the resulting pop-up box, type "ipconfig" (no quote marks). For Macs, go to System Preferences, select Network, and you should see it. For mobile phone IP addresses, go to Settings, then WiFi and to the network you're on. The IP address might be found under "Advanced" or "(i)" depending on the type of phone you have.
Internet Addresses and Subnets
The following is an example of a subnet IP address you might have on your computer at home if you're using a router (wireless or wired) between your ISP connection and your computer:
Besides reserving IP addresses, the IANA is also responsible for assigning blocks of IP addresses to certain entities, usually commercial or government organizations. Your internet service provider (ISP) may be one of these entities, or it may be part of a larger block under the control of one of those entities. When you connect to the internet, your ISP assigns you one of these addresses. You can see a full list of IANA assignments and reservations for IPv4 addresses at IANA's website [source: IANA].
If you only connect one computer to the internet, that computer can use the address from your ISP. Many homes today, though, use routers to share a single internet connection between multiple computers.
If you use a router to share an internet connection, the router gets the IP address issued directly from the ISP. Then, it creates and manages a subnet for all the computers connected to that router. If your computer's address falls into one of the reserved subnet ranges listed earlier, you're going through a router rather than connecting directly to the internet.
IP addresses on a subnet have two parts: network and node. The network part identifies the subnet itself. The node, also called the host, is an individual piece of computer equipment connected to the network and requiring a unique address. Each computer knows how to separate the two parts of the IP address by using a subnet mask. A subnet mask looks somewhat like an IP address, but it's actually just a filter used to determine which part of an IP address designates the network and node [source: Solarwinds].
A subnet mask consists of a series of 1 bits followed by a series of 0 bits. The 1 bits indicate those that should mask the network bits in the IP address, revealing only those that identify a unique node on that network. In the IPv4 standard, the most commonly used subnet masks have complete octets of 1s and 0s as follows:
People who set up large networks determine what subnet mask works best based on the number of desired subnets or nodes. For more subnets, use more bits for the network; for more nodes per subnet, use more bits for the nodes. This may mean using non-standard mask values. For instance, if you want to use 10 bits for networks and 22 for nodes, your subnet mask value would require using 11000000 in the second octet, resulting in a subnet mask value of 255.192.0.0.
Another important thing to note about IP addresses in a subnet is that the first and last addresses are reserved. The first address identifies the subnet itself, and the last address identifies the broadcast address for systems on that subnet.