# Understanding IP Addresses | Cycle.io

Canonical URL: https://cycle.io/learn/understanding-ip-addresses

## Understanding IP Addresses.

**IP addresses** are the fundamental identifiers used in [TCP/IP networks](https://cycle.io/learn/tcp-ip-overview) to locate and differentiate devices. Every device connected to a network, whether it's a computer, server, or container, needs an IP address to communicate with other devices. This guide will help you understand what IP addresses are, how they work, and their importance in modern networking.

### What is an IP Address?

An **Internet Protocol (IP) address** is a unique string of numbers assigned to each device connected to a network. It serves two main functions:

1.  **Identification**: Uniquely identifies a device on a network.
2.  **Location**: Provides the device's address, enabling communication across networks.

IP addresses are essential for routing data between devices in different networks. Without IP addresses, the internet and other networks could not function.

#### IPv4 vs. IPv6

There are two versions of IP addresses in use today: **IPv4** and **IPv6**.

-   **IPv4**: The most widely used version, IPv4 addresses are 32-bit numbers, typically represented as four decimal numbers separated by dots (e.g., `192.168.1.1`). This format allows for approximately 4.3 billion unique addresses.
-   **IPv6**: As the number of devices connected to the internet grew, IPv4 addresses began to run out. IPv6 was introduced to address this limitation, offering a much larger address space. IPv6 addresses are 128-bit numbers, represented in hexadecimal format, separated by colons (e.g., `2001:0db8:85a3:0000:0000:8a2e:0370:7334`). This allows for an almost limitless number of unique addresses.

![Running Containers On IPv6 Networks cover](https://cycle.io/_cdn/running-containers-on-ipv6-networks-hero-1.svg?v=mo0auxyr)

From Our Blog

Running Containers On IPv6 Networks.

Want to adopt IPv6 networks for your containerized environments, but not sure where to start? Take a hands-on look at how to configure and debug containers in IPv6 networks.

<https://cycle.io/blog/running-containers-on-ipv6-networks>

#### Public vs. Private IP Addresses

IP addresses can be categorized into **public** and **private**:

-   **Public IP Addresses**: These are assigned to devices that need to be accessible over the internet. Public IP addresses are unique across the entire internet, ensuring that each device can be reached from anywhere in the world.
-   **Private IP Addresses**: These are used within private networks, such as those in homes or businesses. Private IP addresses are not unique across the internet, which means they cannot be accessed directly from outside the private network. Instead, devices with private IPs rely on a router with a public IP address to communicate with the broader internet.

Private IP addresses typically fall within the following ranges:

-   `10.0.0.0` to `10.255.255.255`
-   `172.16.0.0` to `172.31.255.255`
-   `192.168.0.0` to `192.168.255.255`

#### Subnetting and CIDR

[Subnetting](https://cycle.io/learn/subnetting-and-supernetting) is a technique used to divide a network into smaller sub-networks (subnets). This process helps organize and secure networks, particularly in large organizations. Each subnet has its own range of IP addresses and can be managed independently.

**Classless Inter-Domain Routing (CIDR)** is a method for allocating IP addresses and routing IP packets. CIDR notation simplifies subnetting by combining the network address and the subnet mask into a single format, such as `192.168.1.0/24`, where `24` indicates the number of bits in the subnet mask.

#### Dynamic vs. Static IP Addresses

IP addresses can also be **dynamic** or **static**:

-   **Dynamic IP Addresses**: These are automatically assigned to a device by a DHCP (Dynamic Host Configuration Protocol) server when the device connects to a network. Most devices use dynamic IP addresses, which can change over time.
-   **Static IP Addresses**: These are manually assigned to a device and do not change unless altered by a network administrator. Static IPs are commonly used for servers or other critical devices that need a consistent address.

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
