VMware ESXi and vSphere Cluster Management

Automatic Private IP Addressing (APIPA)

Learn why Windows assigns a 169.254.x.x APIPA address when DHCP fails, what local communication remains possible, and how to troubleshoot DHCP and network problems.

Automatic Private IP Addressing (APIPA) is an automatic IPv4 fallback mechanism. When a DHCP-configured host cannot obtain a usable lease, it can assign itself an address from the IPv4 link-local range 169.254.0.0/16.

APIPA is commonly associated with Windows clients. It allows limited communication on the local network segment, but it does not provide the normal routed access supplied by a successful DHCP configuration.

How DHCP and APIPA Work Together

DHCP, the Dynamic Host Configuration Protocol, supplies a client with a temporary IP address assignment called a lease. It can also supply a subnet mask, default gateway, DNS servers, and other options.

During startup or network connection, a DHCP client seeks a DHCP server. In a typical network, the client and server complete the DHCP exchange, and the client installs the assigned settings. If the client cannot contact the server or does not receive a usable response, it may enter APIPA fallback mode.

  1. The client is configured to obtain IPv4 settings automatically.
  2. The client attempts to find a DHCP server and obtain a lease.
  3. The DHCP exchange fails because of a server, path, link, VLAN, relay, filtering, or adapter problem.
  4. The client selects a candidate address from the link-local APIPA range.
  5. The client checks for an address conflict before using the candidate.
  6. If the candidate is not in use, the client applies it as a temporary local-link address.

This behavior is different from a deliberate static configuration. A static address is manually assigned in the adapter settings or by an administrator. An APIPA address is automatically selected because DHCP acquisition did not succeed.

APIPA Addressing Details

The APIPA IPv4 address space is 169.254.0.0/16. The commonly taught host range is 169.254.0.1 through 169.254.255.254, with subnet mask 255.255.0.0.

ItemValue or Behavior
PurposeAutomatic fallback addressing after DHCP acquisition fails
Typical operating system associationWindows clients
IPv4 block169.254.0.0/16
Commonly taught usable range169.254.0.1 through 169.254.255.254
Subnet mask255.255.0.0
Prefix length/16
Trigger conditionNo usable DHCP lease is obtained
Default gatewayNormally absent
DNS serversNormally absent unless configured by another mechanism
Scope of communicationLocal link or local Layer 2 segment only
DHCP recheck intervalThe taught Windows behavior is approximately every three minutes

APIPA addresses belong to the IPv4 link-local address space. A link-local address is intended for communication on the directly connected local link, not for forwarding through routers. Standards-based implementations reserve portions of the overall 169.254.0.0/16 block, but routine troubleshooting generally treats any 169.254.x.x address as an APIPA or link-local symptom.

Conflict Avoidance

The client does not simply use an arbitrary address without checking it. After selecting a candidate, common APIPA behavior uses ICMP, the Internet Control Message Protocol, as part of address-conflict detection. If another device responds in a way that indicates the address is already in use, the client abandons that candidate and selects another one.

What an APIPA Host Can and Cannot Reach

Two compatible APIPA hosts on the same local Layer 2 segment can potentially communicate directly. For example, two computers connected to the same isolated switch may select different addresses in the 169.254.0.0/16 range and exchange local traffic.

APIPA normally does not provide a default gateway. A default gateway is the router address a host uses to reach remote networks. APIPA also normally does not provide a DNS server, which means names cannot be resolved through the usual DHCP-provided DNS configuration.

  • Local communication with another compatible APIPA host may work.
  • Communication with remote subnets normally fails.
  • Internet access normally fails.
  • Access to name-based services normally fails when DNS settings are unavailable.
  • A router cannot normally forward link-local APIPA traffic beyond the local link.

Therefore, a successful ping to a nearby APIPA host does not prove that DHCP or the wider network is working.

Normal DHCP Addressing vs. APIPA

CharacteristicDHCP LeaseAPIPA Fallback
Address sourceDHCP serverClient automatically selects a link-local address
IP address rangeConfigured DHCP scope169.254.0.0/16
Subnet maskSupplied by DHCP255.255.0.0 or /16
Default gatewayNormally supplied by DHCPNormally absent
DNS serversNormally supplied by DHCPNormally absent
Remote network accessNormally available when routing worksNormally unavailable
Troubleshooting meaningNormal address acquisitionDHCP acquisition failed or the client cannot reach DHCP

DHCP Recovery Behavior

APIPA is temporary. The client continues checking periodically for a reachable DHCP server. The commonly taught Windows behavior is that the APIPA service checks about every three minutes.

When the DHCP server or the path to it becomes available, the client obtains a valid lease. The DHCP-provided address replaces the APIPA address, and the client receives the associated subnet mask, default gateway, DNS servers, and other options.

For example, a computer may first show 169.254.42.18. After the DHCP service is restored, it may change to an address from the organization’s configured scope, such as 192.0.2.25 in a documentation example, along with normal gateway and DNS settings.

Diagnosing a 169.254.x.x Address

Start by treating the address as evidence of a failed DHCP process. Do not immediately conclude that the network adapter is defective. The failure may be anywhere between the client and the DHCP service.

Common Causes

  • DHCP server outage or service failure
  • Unavailable, exhausted, or incorrectly configured DHCP scope
  • Disconnected Ethernet cable or failed physical link
  • Wireless adapter not associated with the intended network
  • Incorrect VLAN or switch port assignment
  • Switch port failure or port-security issue
  • DHCP relay failure when the server is on another subnet
  • DHCP traffic blocked by filtering or security controls
  • Disabled, misconfigured, or faulty network adapter
  • Network adapter driver problems

Verification Workflow

  1. Confirm that Ethernet link status is active or that the wireless client is associated with the correct SSID.
  2. Inspect the address, subnet mask, gateway, DNS, DHCP-enabled status, and lease information.
  3. Verify that IPv4 properties are set to obtain an IP address automatically when DHCP is expected.
  4. Compare the client’s switch port, VLAN, wireless network, and security settings with a working client.
  5. Test local reachability where appropriate. An APIPA host may reach another APIPA peer on the same segment, but a normal gateway is expected to be missing.
  6. Check DHCP server health, scope availability, and relay configuration.
  7. After correcting the path or service, renew the DHCP lease.
  8. If one client is affected, focus first on its adapter and local path. If many clients on one subnet are affected, investigate shared DHCP, relay, VLAN, or upstream problems.

Windows Commands for APIPA Troubleshooting

Inspect the Complete Configuration

Run the following command from Windows Command Prompt:

ipconfig /all

Review the relevant adapter. An APIPA condition commonly shows a 169.254.x.x IPv4 address, a 255.255.0.0 mask, no normal default gateway, and missing or unexpected DNS information. Also check whether DHCP is enabled and whether lease details are present.

Release and Renew the Lease

After restoring link or DHCP connectivity, release and request the address again when appropriate:

ipconfig /release
ipconfig /renew

If ipconfig /renew still fails, renewing again without correcting the underlying path usually will not solve the problem. Continue checking the adapter, VLAN, relay, scope, and DHCP server.

Test Local Reachability

Use a local host or gateway address as appropriate:

ping <local-host-or-gateway-address>

A gateway test is not meaningful when the host has no gateway because it is in APIPA mode. A ping to another APIPA host can help determine whether local Layer 2 communication remains possible, but it does not confirm DHCP or routed connectivity.

APIPA Troubleshooting Causes and Checks

Possible CauseWhat to CheckExpected Finding or Next Action
Physical link failureCable, link LEDs, adapter state, and switch portRestore the physical link, then renew the lease
Wireless not connectedAssociation, authentication, SSID, signal, and wireless profileConnect to the intended network, then renew
Incorrect VLAN or switch port configurationPort assignment, access VLAN, trunk path, and comparison with a working portCorrect the VLAN or port configuration
DHCP server unavailableDHCP service status, server reachability, and server logsRestore the service or escalate to the DHCP administrator
DHCP scope exhausted or misconfiguredAvailable addresses, exclusions, reservations, scope activation, and optionsRestore usable scope capacity or correct the scope
DHCP relay unavailable or incorrectly configuredRelay interface, helper configuration, routing, and server reachabilityCorrect the relay path between the client subnet and server
DHCP traffic blockedACLs, firewall rules, port security, and filtering of DHCP messagesPermit the required DHCP traffic
Incorrect client adapter settingsAutomatic IPv4 and DNS configuration, adapter status, and driver stateEnable automatic configuration or repair the adapter and driver

Practical Examples

Windows Workstation Loses Access to DHCP

A workstation is configured to obtain an address automatically. It starts while unable to reach DHCP and displays 169.254.42.18 with mask 255.255.0.0. It may communicate with another APIPA host on the same segment, but it cannot normally reach the organization’s gateway or the internet.

The administrator checks the cable or Wi-Fi connection, switch port, VLAN assignment, DHCP relay path, and DHCP service. After the failure is corrected, the administrator runs ipconfig /renew.

Two Hosts on an Isolated Switch

Two DHCP clients are connected to the same unmanaged switch while the DHCP server is unavailable. Each selects a nonconflicting APIPA address. Because both hosts are on the same local segment and use the same link-local mask, they can potentially exchange traffic directly.

Neither host receives a gateway or DNS configuration, so their communication does not normally extend to other networks or internet services.

DHCP Service Returns

A client temporarily uses APIPA during a DHCP outage. The server or network path is restored. During a periodic DHCP check, the client obtains a valid lease and replaces its APIPA address with the assigned address, mask, gateway, and DNS settings.

Symptom-Based Diagnostic Paths

One Client Shows 169.254.78.9

This means the client did not obtain a usable DHCP lease. Confirm Ethernet or wireless connectivity, verify the switch port and VLAN, check the DHCP server and scope, inspect relay configuration if the server is remote, and renew the address after correcting the problem.

A User Can Reach One Nearby Computer but Not Network Resources

Both computers may have APIPA addresses on the same local link. Compare their addresses and masks, confirm that they are in 169.254.0.0/16, and restore DHCP instead of attempting to use APIPA for normal routed access.

The DHCP Server Works but One Client Remains on APIPA

Focus on the client’s path. Check the adapter, cable, wireless authentication, driver, switch port, VLAN, security settings, DHCP filtering, and automatic addressing configuration. Compare the client with a working device on the same network, then renew the lease.

Many Clients on One Subnet Receive APIPA

A shared service or network path is likely at fault. Check DHCP service health, scope availability, relay configuration, switch and VLAN changes, and upstream connectivity. Compare the affected subnet with an unaffected subnet.

Key Takeaways

  • APIPA is automatic IPv4 fallback addressing used when a DHCP-configured host cannot obtain a usable lease.
  • The address space is 169.254.0.0/16, commonly taught with host addresses from 169.254.0.1 through 169.254.255.254.
  • The subnet mask is 255.255.0.0, or /16.
  • APIPA may permit communication between compatible hosts on the same local Layer 2 segment.
  • APIPA normally provides no default gateway or DNS server and is not intended for routed or internet access.
  • The client checks periodically for DHCP and replaces the temporary APIPA settings when a valid lease becomes available.
  • When troubleshooting, check the local link, adapter configuration, VLAN, relay, DHCP scope, DHCP service, and traffic filtering.

For a focused reference, see Automatic Private IP Addressing (APIPA).