How to Connect to an SMB or NAS Share on a Mac

On this page
Short answer: To connect to an SMB or NAS share on a Mac, open Finder and press ⌘K (Go › Connect to Server). Type smb://servername/sharename or smb://IP-address/sharename, click Connect, and sign in as a Registered User. Save the password in your keychain, then add the mounted share under Open at Login so it reconnects when you log in.
Your NAS shows up under Network one day and vanishes the next. Or the share mounts fine, then drops every time your Mac sleeps, and the Finder sidebar forgets it. The connection itself is simple. Keeping it there takes a few extra steps.
How do I connect to an SMB share on a Mac?
Apple's guide to connecting to shared computers and servers describes the steps. On macOS 26 Tahoe and later (we tested on 26.5):
- In Finder, choose Go › Connect to Server (⌘K).
- In the Server Address field, type the address, for example
smb://nas.local/Mediaorsmb://192.168.1.20/Media. - Click the Add (+) button next to the field to save it as a favourite server.
- Click Connect.
- Choose Registered User, enter the user name and password you set up on the NAS, and tick Remember this password in my keychain.
- Select the shares you want and click OK.
On macOS 27: Apple's macOS 27 update notes say network file browsing is faster. The steps are the same.
The share appears under Locations in the Finder sidebar and as a drive you can open like any folder. Apple lists the address formats: smb://DNSname/sharename or smb://IPaddress/sharename, and nfs:// for NFS servers.
Why can't my Mac find my NAS?
If the NAS doesn't appear under Network in the sidebar, connect by address instead. Browsing relies on the NAS announcing itself, and that often fails across Wi-Fi mesh points or VLANs. Typing the IP address skips discovery altogether.
A few checks fix most failures:
- Confirm SMB is on. In the NAS admin page, make sure SMB file sharing is enabled for that share and your user has access.
- Use a fixed address. Reserve the NAS's IP address in your router, so
smb://192.168.1.20keeps pointing at it. - Check the share name. It's the name of the shared folder on the NAS, not the NAS itself.
- Switch from AFP. Apple deprecated its AFP client in macOS Sequoia 15.5 (release notes), and its Time Machine disk guide says AFP isn't supported in macOS 27 or later. Change any
afp://favourites tosmb://.
How do I reconnect a network drive automatically at login?
macOS doesn't have a "map network drive" switch, but a login item does the same job. Apple's guide to opening items at login lists server connections among the items you can add.
- Connect to the share as above, with the password saved in your keychain.
- Open System Settings › General › Login Items & Extensions.
- Under Open at Login, click the Add (+) button.
- Select the mounted share (it's listed under Locations in the file dialog) and click Open.
Each time you log in, macOS remounts the share. It also opens a Finder window for it, which you can close.
How do I keep the share in the Finder sidebar?
Mounted shares appear under Locations while they're connected and disappear when they're not. Two settings help:
- Finder › Settings › Sidebar: tick Connected servers so mounted shares are always listed.
- Finder › Settings › General: tick Connected servers to show them on the desktop too.
For a one-click shortcut that survives a disconnect, drag a folder from the share into the Favourites section of the sidebar. Clicking it remounts the share, as long as the password is in your keychain.
Why does my network share disconnect after sleep?
When your Mac sleeps, its network connection drops, and mounted shares can go with it. On wake, Finder may show the share as gone or ask you to reconnect. The quick fix is Go › Connect to Server, then the clock icon to the right of the address field for Recent Servers.
Where the native setup falls short:
- No reconnect on wake. The login item runs at login, not after sleep.
- Favourites only store addresses. Connect to Server can't save a separate name, key or bucket for each server.
- No SFTP or cloud storage. Finder connects to SMB, NFS and WebDAV, but it can't open an SFTP server or an S3 bucket. People install a second app just for that; our Finder alternatives comparison covers the options.
How Sunroom does it
Sunroom Files keeps a Connection Manager for your servers. Save SFTP, S3 and network-share servers once, each with a name, and every detail, including passwords and secret keys, is stored in your Keychain. Recently used servers appear under Servers in the sidebar for one-click access.
You can pin any server to the sidebar. Pinned network shares reconnect when Files opens and after your Mac wakes, as long as their password is saved in your Keychain. SFTP and S3 servers reopen in a pane, so an SFTP server or an S3, R2, B2 or MinIO bucket sits next to your own files.

Sunroom runs on macOS 14 Sonoma or later, on Apple silicon Macs, and is in private beta.
Which way of connecting should I use?
| Option | Protocols | Reconnects at login | Reconnects after sleep | Saved passwords |
|---|---|---|---|---|
| Connect to Server (⌘K) | SMB, NFS, WebDAV | No | No | Keychain |
| Connect to Server + login item | SMB, NFS, WebDAV | Yes | No | Keychain |
| Sidebar favourite folder | Whatever mounted it | When clicked | When clicked | Keychain |
| Sunroom Files, pinned server | Network shares, SFTP, S3-compatible | When Files opens | Yes | Keychain |
Once your NAS stays connected, moving files to it gets easier. See how to move files instead of copying them, or check a backup with our guide to comparing two folders on a Mac. More tips are in our Finder & Files guides.
FAQ
How do I connect to an SMB share on a Mac?
In Finder choose Go › Connect to Server (⌘K), type smb:// followed by the server name or IP address and the share name, click Connect, then sign in as a Registered User.
How do I make a network drive reconnect automatically on a Mac?
Connect to the share and save the password in your keychain. Then open System Settings › General › Login Items & Extensions, click Add under Open at Login, and choose the mounted share.
Why does my NAS disconnect when my Mac sleeps?
Sleep drops the network connection, and macOS does not always remount shares on wake. Reconnect from the Recent Servers menu in Connect to Server, or use a login item or a file manager that reconnects pinned shares on wake.
Should I use SMB or AFP to connect to my NAS?
Use SMB. Apple deprecated its AFP client in macOS Sequoia 15.5 and says AFP isn't supported in macOS 27 or later, so afp:// connections stop working once you upgrade.
Fix your Mac the way Apple didn't.
Sunroom adds better Files, Calendar, Mail and Music apps, a live Home screen and Ray, an AI agent that asks before it acts. Join the waitlist for the private beta.



