Affected Operating Systems:
- OS X 10.5 Leopard
- OS X 10.6 Snow Leopard
Problem:
Mac is unable to get an IP address via DHCP, reporting either a self-assigned IP address (169.x.x.x) or no IP address. This often happens on the wireless Airport interface, even when Ethernet appears to be working.
Cause:
The OS X firewall is blocking incoming DHCP information, preventing an address from being obtained. This often happens after total battery depletion or improper shutdown which modifies the file creation dates of key network files (configd, mDNSResponder).
Best Solution:
Download and run the Wireless Network Setup Utility from the UVM Software Archive. This installer includes fixes for necessary firewall exceptions.
Quick/Temporary Solution:
Temporarily disable the firewall to allow a DHCP connection, then re-enable the firewall.
OS X 10.5.8 Leopard
- Open System Preferences by clicking its icon in the Dock or clicking the Apple menu in the upper left corner and choosing System Preferences.
- Click the Security preference pane.
- If it is locked, unlock it by clicking the closed padlock icon in the bottom left corner.
- Select the Firewall tab.
- Set it to Allow all incoming connections.
- Click the Show All button at the top of the window.
- Click the Network preference pane.
- Select the network interface (Ethernet or Airport) you want to connect from the column on the left.
- Click the Advanced button.
- Select the TCP/IP tab.
- Click the Renew DHCP Lease button.
- Wait a few seconds.
OS X 10.6.8 Snow Leopard
- Open System Preferences by clicking its icon in the Dock or clicking the Apple menu in the upper left corner and choosing System Preferences.
- Click the Security preference pane.
- If it is locked, unlock it by clicking the closed padlock icon in the bottom left corner.
- Select the Firewall tab.
- Click the Stop button.
- Click the Show All button at the top of the window.
- Click the Network preference pane.
- Select the network interface (Ethernet or Airport) you want to connect from the column on the left.
- Click the Advanced button.
- Select the TCP/IP tab.
- Click the Renew DHCP Lease button.
- Wait a few seconds.
If a DHCP-assigned IP address is obtained, return to the Firewall preference pane and re-enable the firewall. Turning the firewall back on should not reintroduce the problem.
Advanced Solution:
Reset the firewall to its factory default settings. Warning: this will remove any custom firewall rules that may have been added.
- Open Terminal (located in Applications > Utilities).
- Type or copy/paste the following:
sudo cp /usr/libexec/ApplicationFirewall/com.apple.alf.plist /Library/Preferences/com.apple.alf.plist
- Enter the Mac admin password when prompted.
- Quit Terminal.
- Restart the computer.
When All Else Fails Solution:
Download and (re)install the latest Combo Update for that version of OS X. This will reinstall the affected network files and correct any date/time discrepancies that may have occurred due to a dead battery.