Ask Leo! by Leo A. Notenboom

Why can't I connect with a 169.254.x.x IP address?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Networking » Network IP Addressing

Summary: 169.254.x.x IP addresses are self-assigned when your computer can't get an address any other way. It's an almost sure sign of a problem.

My IP address was 192.168.x.xx, and somehow it was changed to 169.254.xx.xx. Because of this I can't access the internet. Any ideas?

Your IP address wasn't "changed" so much as it was broken.

If you end up with an IP in the 169.254.x.x address range, then something is definitely wrong.

For most folks, the IP address of your computer is assigned when you boot your machine. Using DHCP, your computer asks for an IP address, and a DHCP server responds by assigning one:

Simple DHCP assignment

If you're behind a NAT router it'll be the one handing out IP addresses and you'll most commonly get an address in the 192.168.x.x range. If you're directly connected to the internet your IP address could be almost anything. Exactly what range it'll be in is defined by which IP address ranges have been assigned to your ISP.

169.254.x.x, however, is special.

Consider: what happens when your computer asks for an IP address and no one responds? Due to a network problem, or maybe not being on a network at all, perhaps there's no DHCP server to hand out IP addresses.

What happens is this: your machine waits for a while and then gives up. But when it gives up it invokes Automatic Private IP Addressing, or APIPA, and makes up its own IP address. And those "made up" IP addresses are in the 169.254.x.x range.

"It's like having an unlisted phone number that's so unlisted that even the phone company doesn't know it."

Now, a 169.254.x.x IP address is pretty close to useless. The reason that IP addresses are assigned is so that the upstream networking equipment knows where to send or how to route packets that are destined to reach a machine at a particular address. In other words, when things work that equipment knows that your machine has this address. If your machine makes up its own address, no one else knows. As a result, there's no way to know how to get to your machine.

It's like having an unlisted phone number that's so unlisted that even the phone company doesn't know it. No one can call you.

Even connecting "out" to visit, say, a web site or other server doesn't work because there's no way to know where to send the response.

In fact, the only utility I've ever found with a 169.254.x.x address is if machines are connected directly to each other, then some protocols can be made to work machine-to-machine using the IP addresses. Most, however, do not.

It's frustrating enough that I consider a 169.254.x.x the same as "it's broken" and move on to resolving the underlying cause.

About all you can really say from getting one of those addresses is simply that the machine cannot reach the DHCP server over the network.

  • If you're connected via a NAT router, then either your computer is not actually connected on the network to that router, or the router itself isn't responding to the DHCP request. I typically triple-check my cabling, and perhaps reboot the router.

  • If you're connected to the internet directly then there's something about that that isn't working. Check the cabling to your broadband modem, and check the cabling from your broadband modem to your telephone or cable line. And, if all else fails, call your ISP - it may be their DHCP server or some other item they control that's at fault.

Bottom line: if you're getting a 169.254.x.x IP address then something about your network setup isn't working, and you probably want to investigate what and why.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3090 - July 18, 2007

Was this article helpful? «Yes» «No»

Recent Comments
28 Comments

I solved the problem pretty easily (I have vista though). The only thing I did is clicked ''diagnostic and repair'' on the connection menu and chose ''get an ip address for the connection''. I actually tried it a couple of time yesterday night and it didn't work. I just waited until this morning and it worked the first time I tried. It's probably because I left my laptop closed for several hours. Good luck to all!

Posted by: mathieu at April 13, 2009 9:55 AM

The best way I have found this issue to be resolved if all wlse fails like
netsh winsock reset catalog (vista)
or netsh winsock reset (XP)
try resetting the TCP/IP Stack in cmd prompt which is netsh int ip reset resetlog.txt
see if that works. Sometimes as i have learnt Winsock does not always repair the issue even though it's a last resort cmd. but resetting the tcp/ip stack can sometimes resolve this issue.

Posted by: Mark H at June 23, 2009 11:11 AM

Hello
I have the same problem, But this occur in my phone
recently i updated the software then after i cant access WIFI in my phone . Strange thing is I can access other Wireless network & My own Pc internet is working fine . I req everybodu plz help me . My OS is vista home
big thanks in advance

Posted by: vikram at July 24, 2009 4:25 AM

Thank You, Thank You, Thank YOU to "Mark H"!!!
I've just spend 8 hours in hell (can I say that word?), trying to revive my system from restore points and backups from (fortunately only) a week ago, but keeping track of everything ... well long story short, my problem was this "dead network" connectivity with the 169.254.x.x IP address.
Well, Mark H's comments to the rescue, the command: "netsh winsock reset" for my XP did the trick! I'll also look at the other command, "netsh int ip reset resetlog.txt" as I'm curious about that one.
Also, does anyone have more info on "WINSOCKFIX" program, is it anything more than just these two commands above? I'm leery of a downloaded program from the web (e.g. the DLL fixers) as you hear such war stories about them.
Best Regards to all, and again THANK YOU for having a site with such valuable posting, and to Mark H for the "winning" post!

Posted by: John (Andrews) at January 18, 2010 10:05 PM

Microsoft offers a utility that will "hard reset" an IP address that has 'defaulted' to a bad \ip address.

Generally you can get the system to reconfigure itself... the issue is caused from a timing issue and static charge.. When you tell the system to reset the IP address it may not work.. do it several times.. then before trying to connect online power cycle your machine.. turn the machine completely off and even unplug it/remove battery. It may take several cycles of this.

The windows utility and directions for a manual stack dump can be found here:

http://support.microsoft.com/kb/299357

Posted by: Ian at January 20, 2010 4:00 AM

Post a comment on "Why can't I connect with a 169.254.x.x IP address?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!