network – How to fix localhost networking issues that affect several apps by resetting networking settings on macOS?

SubhamOctober 4, 2022
Spread the love

Try the easy way first: under Prefs:Sharing:Internet Sharing, enable some sort of Internet sharing, e.g., Wifi to Bluetooth PAN. Disable. See if things work. (Based on my postmortem, this probably would have fixed the specific problem that I encountered.)

I followed the basic instructions under the “Reset the Network Configuration Files” heading of this article, but with some variations because I found some other junk in the same folder. Here’s my best reconstruction of what I did at the Terminal. Since this could potentially break things, don’t do this unless you’re experienced with editing your system files!

  • Close everything else, save, make sure your backups are up to date, etc.
  • Go to /Library/Preferences/SystemConfiguration.
  • Make a backup directory, say, ~/prefs-sysconfig-backup
  • Using sudo, move all files in SystemConfiguration to your backup directory. (This will fail for but everything else should work fine.)
  • Reboot. The files should be recreated automatically.

Looking at the diffs, I suspect that my problem was actually caused by referring to a PrimaryInterface that no longer existed. The suspicious entry looked like:



Leave a comment

Name *
Add a display name
Email *
Your email address will not be published