forgotmyip.com
Home / Guides

Why is my IP 169.254.x.x?

What a self-assigned 169.254 address means and how to get back online.

Published

If your computer shows an IP address starting with 169.254 and you can't get online, your device didn't get an address from the network, so it gave itself one. On Windows, Microsoft puts it this way: if your address is 169.254.x.x, "Windows couldn't get an IP address from your router" (Microsoft Support).

A device set to get its address automatically asks a DHCP server for one (Dynamic Host Configuration Protocol). On a home network, Microsoft's advice for a 169.254 address is to check that DHCP is enabled on your router (Microsoft Support). A self-assigned 169.254 address is only valid for talking to devices on the same physical (or logical) link (RFC 3927). That's also why Microsoft lists a 169.254 address as one thing to check when Windows says you're connected but have no internet (Microsoft Support).

What a 169.254 address is

The block 169.254.0.0/16 is registered with IANA for exactly this purpose: letting a device configure an address for itself (RFC 3927). IANA's special-purpose registry lists it as Link Local, defined by RFC 3927, with Forwardable: False and Globally Reachable: False (IANA). Link-local means the address only works on the local link: the network segment your device is directly attached to (RFC 3927).

Note: 169.254 isn't one of the "private" ranges like 192.168.x.x (RFC 1918). It's a separate, link-local block. See Public vs private IP for the private ranges.

How your device picks one

What Windows and macOS call it

System Name What you'll see
Windows APIPA (Automatic Private IP Addressing) An address in 169.254.0.0–169.254.255.255 with a subnet mask of 255.255.0.0 (Microsoft Learn)
macOS Self-assigned IP An address starting with 169.254, and a yellow indicator with the status "Self-assigned IP" in Network settings (Apple Support)

On Windows, APIPA is enabled by default. A Windows computer set to use DHCP assigns itself an address if no DHCP server is available, for example on a network without one or when one is temporarily down (Microsoft Learn).

Why you can't get online with it

So a device stuck on 169.254 can't reach the internet at all, including forgotmyip.com, which shows your public IP. Once a working, routable address is available, the device must use it for new connections instead of the 169.254 one (RFC 3927).

How to check your address

Windows

Open Command Prompt and run:

ipconfig

Used without options, ipconfig shows the IPv4 and IPv6 addresses, subnet mask and default gateway for every adapter (Microsoft Learn). Look at the IPv4 address of the adapter you use (Wi‑Fi or Ethernet). If it starts with 169.254, Windows didn't get an address from your router (Microsoft Support).

For the full configuration, run:

ipconfig /all

/all shows the full TCP/IP configuration for all adapters (Microsoft Learn). More generally, ipconfig lets you tell which settings came from DHCP, from APIPA or from an alternate configuration (Microsoft Learn).

Note: you may also see an address starting with fe80::. Every interface has an IPv6 link-local address starting with fe80:: (RFC 4291), and ipconfig lists IPv6 addresses too (Microsoft Learn). That's normal. See When 169.254 is fine below.

Mac

Open Apple menu → System Settings → Network. If your Mac couldn't get an address from a DHCP server, the service (Wi‑Fi or Ethernet) shows a yellow indicator and the status Self-assigned IP, and its address starts with 169.254 (Apple Support).

Linux

Run:

ip address

ip address displays your addresses and their properties (ip-address(8)). An address listed with scope link is link-local (ip-address(8)), so look for a 169.254 address on your Wi‑Fi or Ethernet interface.

Why your device got no answer from DHCP

When a device joins a network, it broadcasts a DHCP request (DHCPDISCOVER) on its local subnet (RFC 2131). If no offer comes back, it times out and tries again (RFC 2131). If it still has no working address, it may give itself a link-local one (RFC 3927). A Microsoft DHCP client that doesn't get a valid DHCP address is likely to use an APIPA address (Microsoft Learn).

These are possible causes, in no particular order:

How to fix it

Windows

Work through these steps in order and check your address after each one.

1. Renew your address. In Command Prompt:

ipconfig /release
ipconfig /renew

/release sends a DHCPRELEASE message and discards the adapter's IP configuration; /renew asks for a new one, and only works on adapters set to obtain an address automatically (Microsoft Learn). More detail: How to change your IP address.

Watch out: /release disables TCP/IP on adapters set to obtain an address automatically (Microsoft Learn), so you're offline until /renew gets a new address. Run it on the computer itself, not over a remote connection.

2. Reset the network stack. Microsoft's Wi‑Fi troubleshooting steps: search for Command Prompt, select Run as administrator → Yes, then run these commands (Microsoft Support):

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns

3. Restart your modem and router (Microsoft Support):

  1. Unplug the modem and the router from power.
  2. Wait at least 30 seconds.
  3. Plug the modem back in first, then the router.
  4. Wait a few minutes for both to fully power on.

4. Forget the Wi‑Fi network and reconnect. Go to Settings → Network & internet → Wi‑Fi → Manage known networks, select your network and click Forget, then join it again (Microsoft Support).

5. Run the troubleshooter (Windows 11). Run the automated Network and Internet troubleshooter in the Get Help app (Microsoft Support).

6. Network reset (last resort). On Windows 11: Settings → Network & internet → Advanced network settings → Network reset. It removes any network adapters you've installed and their settings (Microsoft Support), so try everything else first.

Mac

  1. Renew the DHCP lease: open Apple menu → System Settings → Network, click the active service (Wi‑Fi, Ethernet or other), then Details. Click TCP/IP, click Renew DHCP Lease next to "DHCP lease", review the message and click Apply (Apple Support). Any unsaved changes are lost (Apple Support).
  2. Restart the network service by turning it off and on again in Network settings (Apple Support).
  3. Something else to try: Apple's network troubleshooting page also lists turning off Private Wi‑Fi Address for a network (Wi‑Fi → your network → Details) (Apple Support). Apple doesn't link this setting to self-assigned addresses, so treat it as one more thing to try, not as a known cause.

Don't forget the router restart steps above: they apply to any device.

Linux (NetworkManager)

On distributions that use NetworkManager, take the connection down and bring it back up; with ipv4.method auto it gets its address from DHCP or a similar service (NetworkManager):

nmcli connection down "Home Wi-Fi"
nmcli connection up "Home Wi-Fi"

down deactivates a connection and up activates it (nmcli manual). Replace Home Wi-Fi with your connection's name; How to change your IP address shows how to list them.

Whether NetworkManager uses 169.254 addresses at all depends on settings. ipv4.method auto gets an address from DHCP or a similar service, while ipv4.method link-local assigns a random address from 169.254.0.0/16 (NetworkManager). The separate ipv4.link-local setting can add a 169.254 address on top of other addresses; since version 1.52, fallback gets one only if no other IPv4 address is set. Its default value is default (NetworkManager).

If the router is the problem

Start with the router: restart it and check that DHCP is enabled on it (Microsoft Support). If you can ping your router but still have no internet, Microsoft says there might be a problem with your modem or internet provider. Check for an outage from another device if you can, or contact your provider (Microsoft Support).

When 169.254 is fine

A 169.254 address isn't always a fault. Link-local addresses exist for places where stable, routable addresses aren't available, such as ad hoc or isolated networks (RFC 3927). For example, two people with laptops on the same wireless link can exchange files without setting static IPs or running a DHCP server (RFC 3927).

On IPv6 it's even simpler: every interface is required to have at least one link-local address, in the fe80::/10 range (RFC 4291). Like 169.254, they're for use on a single link, and routers must not forward them (RFC 4291). So an fe80:: address in ipconfig is normal and not a sign of a problem. The problem is only a 169.254 IPv4 address instead of a normal one.

Next steps

Sources

  1. Microsoft Support — Fix Wi-Fi connection issues in Windows
  2. RFC 2131 — Dynamic Host Configuration Protocol (DHCP)
  3. RFC 3927 — Dynamic Configuration of IPv4 Link-Local Addresses
  4. IANA IPv4 Special-Purpose Address Registry
  5. RFC 1918 — Address Allocation for Private Internets
  6. Microsoft Learn — How to use automatic TCP/IP addressing without a DHCP server (APIPA)
  7. Apple Support — Troubleshoot network connections on Mac
  8. Microsoft Learn — ipconfig
  9. RFC 4291 — IP Version 6 Addressing Architecture
  10. Linux man page — ip-address(8)
  11. Microsoft Learn — Troubleshooting guide for Dynamic Host Configuration Protocol (DHCP)
  12. Microsoft Learn — Troubleshoot problems on the DHCP client
  13. NetworkManager — nm-settings-nmcli (ipv4.link-local, ipv4.method)
  14. NetworkManager — nmcli reference manual

Forgot your IP? See your IPv4 and IPv6 now.

Show my IP