# APIPA
A feature in operating systems that automatically assigns a unique, non-routable IP address to a device when it cannot obtain one from a DHCP server. This allows for communication on a local network segment without manual configuration. These addresses are in the 169.254.0.1 to 169.254.255.254 range.
**Pronunciation:** uh-pee-puh
**Difficulty:** Beginner
**Synonyms:** Link-Local Address, Zeroconf, Auto-IP
**Categories:** Computer Networking
**Tags:** Networking, IP Addressing, DHCP, Windows, Link-Local
Canonical: https://scaleengineer.com/glossaries/apipa
---
## Definitions

- **Core Functionality in Network Configuration:** **APIPA** (Automatic Private IP Addressing) is a networking feature that enables a device to self-assign an IP address when a Dynamic Host Configuration Protocol (DHCP) server is not available. This allows for continued communication within the local network segment.

### Key Concepts
*   **Address Range**: **APIPA** uses a reserved block of IP addresses from **169.254.0.1** to **169.254.255.254**. This range is designated by the IANA for link-local communication.
*   **Subnet Mask**: The default subnet mask used with an **APIPA** address is **255.255.0.0**.
*   **Conflict Detection**: Before assigning an address, the device sends an ARP (Address Resolution Protocol) request to ensure no other device on the network is already using that specific IP. If a conflict is detected, it will try another address from the range.
*   **Non-Routable**: These addresses are intended only for local network communication. Routers are configured by standard not to forward packets from this address range, so a device with an **APIPA** address cannot access the internet or other networks.

### Usage Scenario
Imagine you connect two laptops directly with an Ethernet cable to transfer files. Neither laptop is connected to a router. Without **APIPA**, you would have to manually set a static IP address on each machine in the same subnet. With **APIPA**, both laptops will fail to find a DHCP server, and each will automatically assign itself a unique 169.254.x.x address, allowing them to communicate with each other immediately. This is a common use case for what is broadly known as **Zeroconf** networking.

### Limitations
While useful for simple, isolated networks, an **APIPA** address is often a symptom of a network problem. If a device that should be on a larger network receives an **APIPA** address, it indicates it cannot reach the DHCP server, preventing it from accessing network resources like printers, servers on other subnets, or the internet.

## Etymology

Acronym for "Automatic Private IP Addressing".

## First used

1998

## Historical context

**APIPA** was first introduced by Microsoft in Windows 98 as a mechanism to simplify the creation of small, ad-hoc networks without the need for a dedicated DHCP server or manual IP configuration. Before its introduction, setting up a small local network required users to manually assign static IP addresses to each device, a process prone to errors like IP address conflicts.

The concept behind **APIPA** is part of a broader standard known as dynamic configuration of IPv4 link-local addresses, formalized in RFC 3927 by the Internet Engineering Task Force (IETF). This standard is often referred to as **Zeroconf** (Zero Configuration Networking) or **Auto-IP**. Apple's implementation is called Bonjour, which also uses these **Link-Local Addresses**.

The goal was to enable 'plug-and-play' networking. A user could connect a few computers with a simple hub or a crossover cable, and the machines would automatically configure themselves to communicate on the local network segment. This made home networking and small office setups much more accessible to non-technical users.

## Q&A

- **What is the specific IP address range used by APIPA?:** APIPA uses the IP address range from 169.254.0.1 to 169.254.255.254, with a subnet mask of 255.255.0.0. This range is specifically reserved by the Internet Assigned Numbers Authority (IANA) for link-local addressing.
- **Under what circumstances does a device get an APIPA address?:** A device receives an APIPA address when it is configured to obtain an IP address automatically (via DHCP) but is unable to contact a DHCP server on the network. This could happen if the DHCP server is down, unreachable due to network issues, or if the device is connected to a simple network (like a direct connection to another computer) without a DHCP server.
- **Can a device with an APIPA address access the internet?:** No, a device with an APIPA address cannot access the internet. APIPA addresses are non-routable, meaning routers will not forward traffic originating from this address range. Its purpose is strictly for communication on the local network segment.

## Usage examples

- My laptop couldn't connect to the internet because it failed to get an IP from the router and assigned itself an **APIPA** address instead.
- When the DHCP server went down, all the workstations on the floor defaulted to **APIPA**, allowing them to still access the local file share but not the company's external website.
- To quickly connect two computers for a file transfer without a router, we just used an Ethernet cable, and they both used **Link-Local Addresses** to communicate.

## Related terms

- DHCP
- IP Address
- Subnet Mask
- Router
- Static IP Address

## Popular related terms

- DHCP
- IP Address
- Zeroconf
- Link-Local Address
- Subnet Mask
