macOS users often experience a self-assigned IP address issue that allows the network interface to create an ad-hoc connection if necessary. This means that even though you have working Wi-Fi, the “internet not working” messages will keep popping up.
Your system will create an ad-hoc network only if they find the hardware but have issues communicating with the DHCP server to obtain your IP address. The issue lies within the system’s Firewall configuration problems, and there are many ways to resolve it.
Here’s our step-by-step guide on how to fix the self-assigned IP error on a Mac.
- Reset your network preferences on Mac
- Renew DHCP lease on macOS
- Create a new network location
- Reset the firewall on your Mac
- Set Service Order from Mac’s Network settings
- Change DNS servers on macOS
Reset your network preferences on Mac
- Launch Finder.
- In the menu bar, click Go → Go to Folder.
- In the pop-up window enter the mentioned line: /Library/Preferences/SystemConfiguration/
- Delete these files:
com.apple.airport.preferences.plist
Networkinterface.plist
preferences.plist - Restart your Mac.
- Log in and connect to your Wi-Fi network.
- Go to the TCP/IP setting again and check the router files.
After your Mac restarts, you should be able to find the deleted files in your folder.
Renew DHCP Lease on macOS
- Click on the Apple logo.
- Go to System Preferences.
- Find and go to Network settings.
- Select Wi-Fi or Ethernet. Mostly, these options are selected by default.
- Click the Advanced button.
- Go to the TCP/IP tab.
- Find and click the Renew DHCP Lease button next to the IPv4 Address line.
- Click OK.
After the lease is renewed, check if you’re able to connect to your network. If that doesn’t help, try creating a New Network Location and renew the lease.
Create a new network location
- Click the Apple logo.
- Go to System Preferences.
- Find and go to Network settings.
- Next to Location, click the drop-down menu.
- Click Edit Locations.
- Click the + icon to add New Location.
- Name the New Network Location.
- Click Done.
- Select Wi-Fi or Ethernet. Mostly, these options are selected by default.
- Click the Advanced button.
- Go to the TCP/IP tab.
- Find and click the Renew DHCP Lease button next to the IPv4 Address line.
- Click OK.
Try connecting to your network after renewing the lease.
When you try to perform configuration changes to the system, your Mac’s firewall experiences configuration issues. Let’s fix this problem by resetting the firewall.
Reset the firewall on your Mac
- Launch Finder.
- In the menu bar, click Go → Go to Folder.
- In the pop-up window, enter in: /Macintosh HD/Library/Preferences/
- Delete the following file: com.apple.alf.plist
- Restart your Mac.
After your system boots, it’ll ask you to allow access to numerous programs and services. You may choose to allow access to numerous programs and services depending upon your choice. Try connecting to your network then.
Set Service Order from Mac’s network settings
- Click the Apple logo.
- Go to System Preferences.
- Find and go to Network settings.
- Click the gear icon at the bottom.
- Click Set Service Order.
- Drag services to the top of the list.
If you’re using Wi-Fi, drag and drop Wi-Fi to the top.
Change DNS servers on macOS
- Click the Apple logo → Go to System Preferences.
- Navigate to Network settings
- Select your Wi-Fi or Ethernet. Usually, they are selected by default.
- Click the Advanced button.
- Go to the DNS tab.
- Click the + icon.
- Add these numbers:
8.8.8.8
8.8.4.4
1.1.1.1
9.9.9.9 - Click OK.
If you’re still having self-assigned IP address problems, get in touch with the Apple Support team.
Which one of these methods worked best for you? Let me know in the comments. If none of these methods work, you may need to contact Apple Support.
Read more:
After much internet searching – these clear, easy directions were a lifesaver. The second suggestion worked perfectly! Thank you!!
Thank you sooooo much !!! I was really struggling to get my Ethernet adapter to connect to my MacBook and I tried the first option and it works now!!!! God bless you and your family.
Thank you soooo much. Resetting the Firewall worked
THANK YOU!!!!! What a PITA this has been. Four hours of struggle, and your post solved the prop in seconds. I could climb through my phone and kiss you I’m so happy! Hero!
Thank you soo muchhh!!! Finally after 3 hours desperated, and you helped me 😭👍
THANK YOU!
Your directions and explanations were clear, easy to follow, and a perfect translation of technical for a layman.
Thank you very much for this fix tips!
I was ready to completely reboot my whole MPB to its factory settings.
What worked best for me was your tip called: Create a new network location.
Thanks again.
Remko
Yesss!! Resetting the firewall did it for me!