MacOS – NAS – “there was a problem connecting to the server” while on other networks

macbook promacosnas

On my home network, I have a NAS I regularly use for storage.

I have set my Mac to automatically mount it via a login item to open the directory on the System Preferences/Users & Groups pane.

I also use my Mac at work, though, where I can't access the NAS any more, because it's on a different network.

This means I get a ton of persistent "There was a problem connecting to the server" messages. I can close them, but they pop back up again.

Is there a better way to do what I'm doing, or to disable those messages?

Best Answer

What you need is a network location manager program, typically these allow you to perform certain actions (e.g. connect to a network drive) when the machine is on some networks and not on others. Several years ago I was using one, now defunct, so I can't recommend any from experience. What I found now are things like Sidekick ($29), Control Plane (free).

You can also do this with a script (e.g. Login Item, if you log off or shutdown the machine when moving it from home to work or vice versa, or cron job) to determine the network the machine is on and depending on it to connect to the network drive (if not already connected) or not.