Connect Mac to a Shared Folder on Your Network
In this article
Yes, you can connect your Mac to a shared folder on your network using the built-in Connect to Server feature. This works for folders shared from other Macs, Windows PCs, NAS drives, and Linux machines, as long as the sharing protocol (SMB, AFP, or NFS) is enabled on the host. You'll need the network path (like smb://192.168.1.10/SharedDocs) and, if the share is password-protected, the username and password for the host computer.
What You'll Need
- A Mac running macOS (any recent version; steps are similar across versions).
- The network address of the shared folder. This can be a computer name (e.g.,
smb://MyPC/Share) or an IP address (e.g.,smb://192.168.1.10/Share). - If the share requires authentication, the username and password for the host device.
- The host device must have file sharing enabled and the folder must be marked as shared.
Step-by-Step
- Find the network address of the shared folder. On the host computer, open its sharing settings. On a Mac, go to System Settings > General > Sharing and note the name shown under “File Sharing.” On Windows, open File Explorer, right-click the folder, select “Properties” > “Sharing” tab, and look for the network path (e.g.,
\\DESKTOP-ABC\SharedDocs). On a NAS, check its admin panel for the share path. - Convert the path to a Mac-friendly format if needed. Windows paths use backslashes and a computer name; Mac uses forward slashes and the SMB protocol. For example,
\\DESKTOP-ABC\SharedDocsbecomessmb://DESKTOP-ABC/SharedDocs. If you have an IP address, use that instead:smb://192.168.1.10/SharedDocs. - Open the Connect to Server dialog. In the Finder, click Go in the menu bar, then select Connect to Server (or press Command + K).
- Enter the server address. In the “Server Address” field, type the full path you prepared (e.g.,
smb://192.168.1.10/SharedDocs). If you’re not sure of the exact share name, you can just type the server’s IP or name (e.g.,smb://192.168.1.10) and click Connect – you’ll then see a list of available shares to pick from. - Click Connect. A pop-up will appear asking how you want to connect. Choose Registered User if you have a username and password on the host, or Guest if guest access is allowed. Enter your credentials when prompted.
- Select the volume. If you connected to a server with multiple shares, a window will list them. Select the folder you want and click OK.
- Access the shared folder. The folder will appear in the Finder’s sidebar under Locations (or on the desktop if you enabled that in Finder settings). You can now read, write, and manage files as if they were local, subject to the permissions set on the host.
- Disconnect when done. To disconnect, click the eject icon next to the share in the Finder sidebar, or right-click and select Eject. This is important to avoid leaving an open connection that can cause issues when the host goes to sleep.
Common Mistakes
- Using the wrong protocol. Some users type
http://orftp://instead ofsmb://. Use SMB for Windows and most NAS devices; AFP is only for older Macs. If you’re unsure, SMB is the safest default. - Incorrect path syntax. Mixing up slashes (using backslashes) or omitting the share name will cause a connection failure. Always use forward slashes and include the share name if you know it.
- Forgetting to enable file sharing on the host. If the host doesn’t have sharing enabled, or the folder isn’t shared, you’ll get an error. Double-check the host’s sharing settings.
- Assuming guest access is allowed. Many systems disable guest access by default. If you get a “connection failed” or “permission denied” error, try using a registered user account.
- Typing the IP address wrong. A single mistyped digit will prevent connection. Verify the IP address on the host (e.g., in System Settings > Network on a Mac, or ipconfig on Windows).
Tips
- Use a static IP or hostname. If the host’s IP changes frequently, use its computer name (e.g.,
smb://MyPC) instead of an IP. On a Mac, you can also usesmb://YourMacName.localif the host is a Mac with Bonjour enabled. - Add to Favorites. In the Connect to Server dialog, click the + button after entering the address to save it for future use. You can then select it from the list each time.
- Reconnect automatically. After connecting, you can add the shared folder to your Login Items (System Settings > General > Login Items) so it mounts every time you log in. Drag the share from the Finder sidebar into the Login Items list.
- Use the “Recent Servers” list. The Connect to Server dialog keeps a list of recent connections, so you don’t have to type the address again.
- If you’re on a different subnet or VPN, make sure the network is reachable. You can test by pinging the host’s IP from Terminal (ping 192.168.1.10) to see if you get a response.
Troubleshooting
If the connection fails, try these in order:
- Check the basics. Ensure both devices are on the same network (same Wi-Fi or Ethernet subnet). Verify the host is awake and not in sleep mode. If the host is a laptop, it may have power-saving settings that disable sharing when on battery.
- Test the network path. Open Terminal and run
ping <host-ip>(replace with the actual IP). If you get no response, the host is unreachable – check the network connection and firewall settings on the host. - Try connecting to the server root. Instead of the full share path, type just
smb://<host-ip>and click Connect. If you see a list of shares, the server is reachable and the issue is with the share name. If you don’t see a list, the server may not be sharing anything. - Check firewall settings. On the host, make sure the firewall (if enabled) allows incoming SMB connections (port 445). On macOS, go to System Settings > Network > Firewall and ensure “File Sharing” is allowed. On Windows, check Windows Defender Firewall for “File and Printer Sharing.”
- Restart the sharing service. On macOS, go to System Settings > General > Sharing and toggle File Sharing off and on. On Windows, restart the “Server” service or reboot the machine. On a NAS, restart the SMB service from its admin panel.
- Sign out and sign back in (on the host). If you’re using a registered user account, sometimes credentials get stale. Try re-entering the password, or reset the password on the host if needed.
- If you still can’t connect, try a different protocol. If the host is a Mac, you can try AFP by typing
afp://<host-ip>(though Apple has deprecated AFP, it may still work on older macOS). For NAS devices, check if NFS is enabled and usenfs://<host-ip>/<export-path>.
Frequently Asked Questions
Why do I get “There was a problem connecting to the server” when I type the IP address?
This usually means the server is not reachable or SMB is not enabled. Check the IP address, ensure the host is on the same network, and verify that file sharing is turned on.
Can I connect to a shared folder using my Mac’s Finder sidebar without typing the address each time?
Yes. After you connect once, the share appears in the Finder sidebar under Locations. You can also add it to Favorites in the Connect to Server dialog for quick access.
What does “SMB” mean and why is it used?
SMB stands for Server Message Block, a network protocol for sharing files, printers, and other resources. It’s the standard protocol on Windows and is supported by macOS, Linux, and most NAS devices.
Is it safe to connect to a shared folder over public Wi-Fi?
It’s not recommended unless you’re using a VPN. SMB traffic is not encrypted by default, so others on the same network could potentially intercept your data. Use a VPN or connect only on trusted networks.
How do I find the IP address of the computer sharing the folder?
On a Mac, go to System Settings > Network, select your active connection, and look for the IP address. On Windows, open Command Prompt and type ipconfig; look for the IPv4 address. On a NAS, check the admin panel or the device’s screen.
Can I connect to a shared folder from my Mac if the host is turned off?
No, the host must be powered on and connected to the network. You’ll also need to ensure it’s not in sleep mode, as some systems disable sharing when sleeping.