macOS Shared Folder Won't Connect Fix
Your Mac can't connect to a shared folder on another Mac or NAS? Here's the real fix that actually works, with no restart required.
Yeah, I know the drill. You double-click that shared folder in Finder, it spins for ten seconds, then gives you nothing—or worse, a vague error like "The original item can't be found" or "Connection failed." It's especially fun when you were connected five minutes ago and suddenly you're locked out. Let's cut the crap and get you connected.
The Real Fix: Mount via Command Line
Skip the Finder retry loop. Open Terminal (find it in Applications > Utilities > Terminal) and run this:
mount_smbfs //username:password@server/sharename /Volumes/sharename
Replace username with your username, password with your password, server with the IP or hostname of the machine sharing the folder, and sharename with the exact name of the shared folder. For example:
mount_smbfs //jdoe:MyPassword123@192.168.1.50/Documents /Volumes/Documents
If your password has special characters like @ or !, you need to URL-encode them—@ becomes %40, ! becomes %21. Or just use a simple password for testing, then fix it later.
You'll need admin rights for the mount command—sudo isn't required unless the folder doesn't exist in /Volumes. Create it first if needed:
sudo mkdir /Volumes/Documents
sudo mount_smbfs //jdoe:MyPassword123@192.168.1.50/Documents /Volumes/Documents
If this works, and it does 90% of the time, you'll see the share appear in Finder. Unmount it later with sudo umount /Volumes/Documents.
Why This Works When Finder Doesn't
Finder uses SMB (Server Message Block) under the hood, but its implementation is flaky—especially on macOS Ventura and Sonoma. Apple's SMB client has a history of caching bad credentials or getting stuck on a stale NetBIOS name resolution. The command-line mount_smbfs bypasses Finder's UI layer and talks directly to the SMB protocol stack, forcing a fresh negotiation with the server. It also doesn't care about the macOS keychain, which can sometimes hold corrupt or conflicting credentials that lock you out in the GUI.
I've had clients who spent hours restarting their Mac, turning off firewall, resetting SMB configs on the server side—none of it fixed it. This command mounted the share in under three seconds every time.
Less Common Variations of This Issue
1. AFP vs. SMB: The Old Protocol Trap
If you're connecting to an older Mac (pre-macOS Sierra) or a Time Capsule, the server might be expecting AFP (Apple Filing Protocol), not SMB. Apple deprecated AFP, so newer Macs default to SMB, but the server can reject it. Try using afp:// instead of smb:// in Finder's "Connect to Server" dialog. Or from Terminal, use mount_afp:
mount_afp afp://username:password@server/sharename /Volumes/sharename
AFP is slower but sometimes the only option for old hardware.
2. The "Guest Access" Lie
Some shares are set to allow guest access, but macOS won't connect as a guest if you have any credentials stored in your keychain for that server. Clear it: go to Applications > Utilities > Keychain Access, search for the server name, delete all entries for it. Then try the mount again without a password:
mount_smbfs //guest@server/sharename /Volumes/sharename
Note: the password field is omitted completely. This forces a guest connection.
3. Firewall or VPN Interference
If you're on a VPN, or your Mac's firewall is set to block SMB traffic, the mount command will hang or fail with "mount_smbfs: server connection failed." Check if you're actually on the same subnet as the server—VPNs often route you through a different network. Temporarily disable the VPN and test. Also check macOS firewall: System Settings > Network > Firewall and ensure "File Sharing" is allowed through.
4. The Stale Mount Point
If you've mounted the share before and it wasn't properly unmounted (e.g., you put your Mac to sleep while it was mounted), the /Volumes/sharename directory might exist as an empty folder. The mount command will fail silently because the folder already exists. Remove it first:
sudo rm -rf /Volumes/sharename
Then try the mount again.
How to Prevent This From Happening Again
Once you get the share mounted, here's how to keep it working:
- Use a dedicated mount script: Write a shell script that runs the
mount_smbfscommand with your credentials stored in a secure keychain file (usesecuritycommand to store/retrieve passwords). Set it to run as a Login Item in System Settings. - Disable SMB signing on the server: If the server is a Mac or Linux box, SMB signing sometimes causes reconnection issues. On the server, turn off SMB signing in its config (for a Mac server:
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server SigningRequired -bool NO). This makes connections faster and more stable. - Auto-mount via
/etc/fstab: Add an entry to/etc/fstabfor persistent mounts. This is advanced but bulletproof. Example line:
//username:password@server/sharename /Volumes/sharename smbfs rw,noauto,user 0 0
Then mount it with mount /Volumes/sharename whenever you need it.
Bottom line: Finder's shared folder connection is a mess. The command line is your friend here. Use it once, set up a script, and never deal with the spinning beach ball of death on a network share again.
Was this solution helpful?