You could also try these
Forget your Network and delete the Wi-Fi configuration files
Go to System Settings > Network > Wi-Fi, click the three-dots button next to your network, and select Forget This Network.
From the previous tip in the thread
To reset network preferences on a Mac by deleting .plist files, disable Wi-Fi, open Finder, press Command+Shift+G, enter /Library/Preferences/SystemConfiguration/, and delete files like com.apple.airport.preferences.plist, NetworkInterfaces.plist, and preferences.plist to the Trash. After restarting the Mac, your system will regenerate these files with default settings.
Steps to Reset Network Preferences
- Turn off Wi-Fi: Click the Wi-Fi icon in the menu bar and select Turn Wi-Fi Off.
- Open Finder: Click the Finder icon in your Dock.
- Use "Go to Folder": Press Command+Shift+G to open the "Go to Folder" dialog box.
- Enter the Path: Type or paste /Library/Preferences/SystemConfiguration/ into the box and press Go.
- Delete .plist Files: Locate the following files in the SystemConfiguration folder and drag them to the Trash:
- com.apple.airport.preferences.plist
- com.apple.network.identification.plist (if present)
- com.apple.wifi.message-tracer.plist (if present)
- NetworkInterfaces.plist
- preferences.plist
- Empty the Trash: Right-click on the Trash icon in the Dock and select Empty Trash.
- Restart Your Mac: Go to the Apple menu and select Restart.
- Re-enable Wi-Fi: After your Mac restarts, turn your Wi-Fi back on from the menu bar. Your Mac will automatically create new default .plist files, and you'll be able to reconnect to your network.
Reset your Location Services
- Go to System Settings > Privacy & Security > Location Services.
- Turn off Location Services.
- Next, restart your device from the main Apple menu.
- When your Mac relaunches, turn your Location Services back on.
Use Terminal to reset your DNS and network stack
- Open Terminal from Finder > Applications > Utilities.
- Run this command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Enter your admin password and press Return.