How can I force my Mac to get a DHCP-assigned IP address instead of a ZeroConf IP address on WiFi?
-
My OS X Mac failed to connect to a particular network, because it self-assigned an IP address rather than letting the network assign it one. How can I prevent this?
-
Answer:
If your Mac has self-assigned an address in the 169.254.X.X/16 network range, that's a "zero configuration" ("ZeroConf") IP address. ZeroConf IP addresses are used when a Mac (or any other IP host on any LAN) has tried to get an address with , and failed. This IP network address range is set aside for such use so that IP network hosts on the same can still talk to each other absent prior administrative arrangement, e.g. a Mac and a . So, why did this happen to you? Possibilities (presuming that the WiFi network either isn't encrypted, or you have the WEP/WPA key (password), and have established access to the basic radio level of the WiFi network, i.e. the WiFi icon in your menu bar shows connection): The DHCP server didn't hear your Mac's request. Your Mac didn't hear the DHCP server's reply. Your Mac heard the DHCP server reply, but the reply didn't pass basic sanity checks (e.g. DHCP server offered you an IP address and a default route that aren't in the same network range according to the network mask). The DHCP server reply didn't offer you an IP address (it's all out of available IP addresses until the lease expires on one already assigned). The network is either being interfered with, or is hopelessly congested (overloaded). In such situations, all you can do is try again. Or complain to whoever operates the WiFi network. Two basic approaches I use to "try again": As suggests, the Network Preferences panel; if the TCP/IP section is set to use DHCP, there should be both a "renew DHCP lease" button (which will force another DHCP request out onto the LAN), and a "client ID" (some ISPs require you to set this to some particular value (which you should save before trying what I'm going to suggest!), but most often it's blank. You can set the Client ID to an arbitrary string, and the DHCP server should "see" you as a different client, despite you having the same MAC address as before, though that's DHCP server implementation dependent. Change the Client ID, and hit "renew" again. Be a little patient with these retries (i.e. count to 10 before repeating). Bear in mind that your MAC (network interface) address and the DHCP client ID will likely be logged, i.e. you might not want to be profane. When #1 doesn't work, I sleep my laptop, count to ten, and wake it up again. Sometimes this works. Sometimes not. At this point, if you're still not getting what appears to be an assigned-by-DHCP IP address, it would be a fine time to fire up a network sniffer and try to get some idea just how bad the WiFi network is ...
Erik Fair at Quora Visit the source
Other answers
On Mac OS X Snow Leopard: Apple Menu -> System Preferences -> Network. On top choose your desired Location. Then, on the left, choose "Airport", then click the "Advanced..." button. On top choose "TCP/IP", and then for "config IPv4" choose "Using DHCP". Then click "OK", then "Apply".
Paul Mateescu
Related Q & A:
- How can I force the login to a specific ip address?Best solution by Stack Overflow
- How can I correct sent emails from showing a wrong return address?Best solution by Yahoo! Answers
- How can I find the address with just a phone number?Best solution by Yahoo! Answers
- HOW CAN I FIND A PERSON WITH JUST A EMAIL ADDRESS?Best solution by Yahoo! Answers
- How can I get my regular avatar of a real picture back as my avatar instead of the one now?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.