169.254.169.254 Cloud Metadata and Link-Local Addresses

169.254.169.254 is the address cloud virtual machines use to reach their provider's metadata service, which returns instance details, network settings and temporary credentials. It is in 169.254.0.0/16, the link-local block that also explains the 169.254.x.x address a computer gives itself when it can't reach a DHCP server.

169.254.169.254 is a link-local address (RFC 3927, 169.254.0.0/16). A device gives itself one when it can't get an address from a DHCP server. It only works on the local network link, so it has no public location, ISP or owner.

Address type
Link-Local Address
Block
169.254.0.0/16
Defined by
RFC 3927
Location, ISP and owner
None: it can't be geolocated

Who Uses 169.254.169.254

  • AWS EC2 instance metadata (IPv6: fd00:ec2::254)
  • Google Cloud metadata server (also metadata.google.internal) (source)
  • Azure Instance Metadata Service
  • OpenStack Nova metadata service (IPv6: fe80::a9fe:a9fe) (source)

Why It Matters for Security

The metadata service only answers requests made from inside the virtual machine. An app that fetches URLs for its users can be tricked into requesting it (server-side request forgery) and leak those credentials. Block 169.254.169.254 in any outbound URL fetcher, and on AWS require IMDSv2 session tokens.

What a 169.254.x.x Address on Your Device Means

If your computer shows an address between 169.254.1.0 and 169.254.254.255, it couldn't get one from a DHCP server and assigned itself a link-local address (RFC 3927). Windows calls this Automatic Private IP Addressing (APIPA).

Link-local addresses only reach devices on the same local link, so there is no internet access until the router hands out a proper address. Restart the router, reconnect the cable or Wi-Fi, or renew the address (ipconfig /renew on Windows).

Your Public IP Address

Websites and online services see your public IP, the one your router or provider uses on the internet. They never see 169.254.169.254.

Look up your public IP address

What the API Returns

The IP Geolocation API answers with HTTP 423 for bogon and private addresses, and charges no credits for it.

GET https://api.ipgeolocation.io/v3/ipgeo?apiKey=API_KEY&ip=169.254.169.254

HTTP/1.1 423 Locked
{
  "message": "'169.254.169.254' is a bogon IP address."
}

Questions about 169.254.169.254

Can I Open 169.254.169.254 from My Own Computer?

No. It only answers inside a cloud virtual machine, and only for that machine, so on a home or office network nothing responds at that address. Inside a virtual machine, tools and SDKs query it automatically for instance details and temporary credentials, which is why access to it should be restricted.

Why Does My Computer Have a 169.254 Address?

It asked for an address and no DHCP server answered, so it picked a link-local one by itself. Check that the router is on and the cable or Wi-Fi is connected, then renew the address, for example with ipconfig /renew on Windows, or restart the router.

More about Special-Purpose Addresses

Private, loopback, link-local, documentation and other reserved ranges are known as bogons: they should never appear as a source or destination on the public internet. Our guide lists every IPv4 and IPv6 bogon range and how to filter them: What are bogon IP addresses?

Common Private and Reserved Addresses

Public Addresses to Look Up

Start with 1,000 free
IP location lookups a day

Location, ASN, and time zone in one request. Get city, country, and currency data for any IPv4 or IPv6 address, backed by a 99.99% uptime SLA. No credit card required.