How-To

Mac Not Getting IP Address With DHCP: 7 Fixes

mac not getting ip address with dhcp featured image

Are you connected to your local network but your Mac isn’t getting an IP address with DHCP enabled? Use the steps in this guide to troubleshoot the problem.

In order for your computer or mobile device to be able to access the internet, it needs to have a local IP address. This is the address that your router uses to send data to your device. Usually, the IP address is assigned by your router automatically—you don’t have to worry about what it is.

Sometimes, however, you may not be able to connect to the internet. When you take a look at your network, you’ll see an error message stating that your computer has a self-assigned IP address. This means that because your computer has not been given an IP address by your router, it’s had to make one up of its own. Since your router doesn’t know what this IP address is, you won’t be able to connect to the internet.

Thankfully, there are a few ways to fix this issue and get your internet connection back up and running. Here are some fixes to try if you’re having problems with your Mac not getting an IP address with DHCP enabled.

1. Restart Your Router

If you’re using DHCP to assign IP addresses to devices on your network, then it’s your router that’s doing the assigning. If you’re seeing a self-assigned IP address error, then the issue may be with your router.

First, try power cycling your router. Power it off, leave it off for 30 seconds or so, then power it back up again. Once it’s back up and running, check your local network is active and you have a stable internet connection again to see if the problem is fixed. If it isn’t, try following your router’s instructions to access the router settings and ensure that DHCP is enabled.

2. Renew Your DHCP Lease

When your router assigns IP addresses to devices on your network, it doesn’t give your devices those IP addresses forever. This is for a good reason—if someone comes to visit and connects to your Wi-Fi, their device gets assigned an IP address. If that IP address was permanent, none of the other devices on your network would ever be able to use it, even if that device never appeared on your network again.

To get around this, your router issues a DHCP lease. This is a limited time for which the device gets to keep the assigned IP address. Halfway through the lease time, the device will try to renew the lease. If it can’t contact the router at all during the remaining time, the lease expires, and the IP address is freed up for any other device to use.

It’s possible to manually try to renew a DHCP lease on your Mac to see if this fixes the issue.

To manually renew a DHCP lease on Mac:

  1. Click the Apple icon in the menu bar.
    mac apple menu
  2. Select System Settings.
    mac system settings
  3. In the left-hand menu, click Network.
    mac network menu
  4. Select the Ethernet or Wi-Fi network.
    mac select network
  5. Click Details.
    mac details button
  6. In the left-hand menu, select TCP/IP.
    mac tcp/ip menu
  7. Click the Renew DCHP Lease button.
    mac renew dhcp button

3. Set the Service Order

You may also be able to fix your DHCP problems by changing the order that your Mac tries to connect to different networks. It may be that your Mac is trying to connect to the wrong network first and this is causing your problems.

To set the network service order on Mac:

  1. Click the Apple icon.
    mac apple menu
  2. Select System Settings.
    mac system settings
  3. Select Network from the left-hand menu.
    mac network menu
  4. At the bottom of the Network page, click the Three Dots button.
    mac three dots button
  5. Select Set Service Order.
    mac set service order
  6. Drag the service that you want to use to the top of the list, and any services you don’t intend to use to the bottom.
    mac service order
  7. Click OK and try your network connection again.

4. Add a New Network Location

If the problem is with your current network location, creating a new one may be able to solve the problem. Try creating a new network location and connecting to this new network instead.

To add a new network location on Mac:

  1. Click the Apple logo in the top-left of the screen.
    mac apple menu
  2. Select System Settings.
    mac system settings
  3. Click Network.
    mac network menu
  4. At the bottom of the page, click the Three Dots button.
    mac three dots button
  5. Select Add Service.
    mac add service
  6. Choose an Interface from the drop-down and give the service a name.
    mac select interface
  7. Click Create.
    mac create new service
  8. Select your newly created service.
    mac select new service
  9. Click the Details button.
    mac details button
  10. Select TCP/IP from the left-hand menu.
    mac tcp/ip menu
  11. Click the Renew DHCP Lease button.
    mac renew dhcp button
  12. Try your new network connection to see if it works.

5. Reset the Mac Firewall

Your firewall is intended to protect you from unwanted connections to your Mac, but it can also cause issues with your network connection. You can try resetting your firewall to see if this solves the problem.

To reset your firewall on Mac:

  1. Open Finder.
  2. In the menu bar, click Go.
    mac finder go menu
  3. Select Go to Folder.
    mac go to folder
  4. Type /Library/Preferences and press Enter.
    mac preferences
  5. Find the apple.alf.plist file, right-click the file, and select Move to Trash.
    mac move to trash
  6. Restart your Mac and try your network connection again.

6. Reset Network Preferences

You can also try resetting your network preferences on your Mac to see if this fixes the self-assigned IP address issue. This involves deleting the preferences files and rebooting, which gets your Mac to recreate them with default settings.

To reset network preferences on Mac:

  1. Launch Finder and click Go in the menu bar.
    mac finder go menu
  2. Select Go to Folder.
    mac go to folder
  3. Type /Library/Preferences/SystemConfiguration and press Enter.
  4. Select the files apple.airport.preferences.plist, NetworkInterfaces.plist, and preferences.plist.
    mac plist files
  5. Right-click and select Move to Trash.
    mac move to trash
  6. Restart your Mac and try your network connection again.

7. Try a Different DNS Server

A DNS server is a server that translates the web address that you type into the URL bar of your browser into an IP address that can be located on the internet. Using a different DNS server may be able to fix your problem with your Mac not getting an IP address.

To use a different DNS server on Mac:

  1. Click the Apple icon.
    mac apple menu
  2. Select System Settings.
    mac system settings
  3. Select Network.
    mac network menu
  4. Click the network that is causing your problems.
  5. Click the Details button.
    mac details button
  6. In the left-hand menu, select DNS.
    mac dns menu
  7. Click + (plus).
    mac add dns server
  8. Add some additional DNS servers, such as 8.8.8.8 (Google) 9.9.9.9 (Quad9), and 1.1.1.1 (Cloudflare).
  9. Click OK and try your network connection again.

Fix Common Mac Problems

Hopefully one of the fixes above has solved your problems with your Mac not getting an IP address with DHCP. If you find any other useful fixes, please let us know in the comments below.

If you’re having Mac problems, you’re probably not the first to have experienced them. There are some possible fixes for common Mac issues. For example, if your Mac delete key isn’t working, there are some fixes you can try. If you’re having problems with your Mac headphones not working, there are a few things you can try that may help. And there are a range of fixes for the most common Mac problems that may get you back up and running again.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

 

To Top