How to Connect to a Windows Shared Folder from a Mac

Illustration for How to Connect to a Windows Shared Folder from a Mac

A Mac can connect to a shared folder on a Windows PC over the same network using Server Message Block (SMB), the file-sharing protocol built into both macOS and Windows. You usually need the Windows computer’s name or IP address, the shared folder’s name, and a Windows account with permission to access it.

Quick Answer

  1. Make sure the Mac and Windows PC are connected to the same network.
  2. On the Mac, open Finder and choose Go > Connect to Server.
  3. Enter the Windows share address in this format:

text
smb://Windows-PC-Name/ShareName

You can also use the Windows computer’s IP address:

text
smb://192.168.1.25/ShareName

  1. Click Connect, select Registered User, and enter the Windows account credentials.
  2. Choose the shared folder. It will appear in Finder’s sidebar under Locations.

Before You Begin

Check these details before attempting the connection:

  • The Mac and Windows PC are on the same local network, such as the same Wi-Fi network or Ethernet network.
  • The Windows PC is turned on and not disconnected from the network.
  • The folder is shared in Windows.
  • You know the exact share name.
  • You have a Windows username and password that are allowed to access the folder.
  • Windows Firewall or another security tool is not blocking file sharing.

A Windows folder can have two different names:

  • Folder name: The name of the folder as it appears on the Windows drive.
  • Share name: The name Windows publishes to the network.

When connecting from a Mac, use the share name, not necessarily the folder’s original name.

If you are connecting to a Mac, NAS device, or another type of network storage instead, see How to Connect to a Shared Folder or NAS on a Mac.

Find the Windows Computer and Share Information

You can often connect using the Windows computer’s name, but an IP address may work better if the name cannot be found.

Find the Windows computer name

On the Windows PC:

  1. Open Settings.
  2. Select System.
  3. Select About.
  4. Look for Device name.

The device name may contain spaces or punctuation. If Finder has trouble locating it, use the computer’s IP address instead.

Find the Windows computer’s IP address

On the Windows PC:

  1. Open Settings.
  2. Select Network & internet.
  3. Open the active connection, such as Wi-Fi or Ethernet.
  4. Find the IPv4 address.

You can also open Command Prompt, enter ipconfig, and look for the IPv4 address under the active network adapter.

A typical local address looks like this:

192.168.1.25

The address may change later if the router assigns it automatically. If a connection that previously worked stops working, check the current IP address.

Confirm the shared folder’s name

On Windows:

  1. Right-click the folder.
  2. Select Properties.
  3. Open the Sharing tab.
  4. Check the Network Path or shared-folder information.

The part after the computer name is usually the share name. For example, if Windows shows:

\\OFFICE-PC\Documents

Use this address on the Mac:

smb://OFFICE-PC/Documents

Connect to the Windows Shared Folder in Finder

Finder is the simplest way to connect to a Windows share.

  1. Open Finder on your Mac.
  2. In the menu bar, choose Go > Connect to Server.
  3. Enter the server address.

Using the Windows computer name:

text
smb://Windows-PC-Name/ShareName

Using the IP address:

text
smb://192.168.1.25/ShareName

  1. Click Connect.
  2. If macOS asks whether you want to connect, click Connect again.
  3. Select Registered User.
  4. Enter the Windows username and password.
  5. If necessary, select Remember this password in my keychain.
  6. Click Connect.
  7. If Windows exposes more than one shared folder, select the one you want and click OK.

The shared folder should open in Finder. It will also appear in the Finder sidebar under Locations while the connection is active.

Enter the Windows username correctly

Depending on the Windows account, macOS may accept one of these formats:

username

or:

COMPUTER-NAME\username

You can also try:

username@computer-name

For a Microsoft account, the Windows sign-in name may not be the same as the email address you expect. If the login fails, verify which account has permission to the shared folder and try the account’s actual Windows username.

Do not confuse the Windows account password with the Mac login password. The prompt is asking for credentials from the Windows computer.

Connect to the Windows Computer First

If you do not know the exact shared-folder name, connect to the Windows computer without adding a share name.

  1. Open Finder.
  2. Choose Go > Connect to Server.
  3. Enter one of these addresses:

text
smb://Windows-PC-Name

or:

text
smb://192.168.1.25

  1. Click Connect.
  2. Enter the Windows account credentials.
  3. Select a shared folder from the list.
  4. Click OK.

This method is useful when a Windows PC has several shares or when the share name contains unusual characters.

Open the Shared Folder Again

After connecting, use one of these methods:

  • Open Finder and select the shared folder under Locations.
  • Choose Go > Recent Folders if the folder appears there.
  • Return to Go > Connect to Server. macOS may show the address in the Server Address field’s history.

If you connect to the share frequently, you can add it to Finder’s sidebar. First connect to the folder, then drag its entry from the Finder window into the Favorites area of the sidebar.

Disconnect From the Windows Share

Disconnecting removes the network connection from Finder but does not delete files on the Windows PC.

  1. Open Finder.
  2. In the sidebar, find the shared folder under Locations.
  3. Click the Eject button next to it.

You can also select the shared folder and choose File > Eject.

Before disconnecting, close files stored on the Windows share and wait for any file transfers to finish. Disconnecting during a transfer can interrupt it and may leave an incomplete copy.

Automatically Reconnect at Login

macOS can open a network share automatically when you sign in.

  1. Connect to the Windows shared folder in Finder.
  2. Open Apple menu > System Settings.
  3. Select General.
  4. Select Login Items & Extensions.
  5. Under Open at Login, click the Add (+) button.
  6. Select the mounted shared folder.
  7. Click Open.

Automatic reconnection may fail if the Windows PC is turned off, the network is unavailable, the IP address changed, or the saved credentials are no longer valid. Connecting by computer name may be more convenient than using an address that changes.

Troubleshooting a Windows Share That Will Not Connect

“There was a problem connecting to the server”

Check the address carefully. The format must use forward slashes:

smb://ComputerName/ShareName

Do not paste a Windows path such as:

\\ComputerName\ShareName

If the name does not work, try the Windows PC’s IP address:

smb://192.168.1.25/ShareName

Also confirm that both devices are on the same network and that the Windows computer is awake.

The Windows computer does not appear in Finder

You do not need to wait for it to appear under Network. Open Go > Connect to Server and enter the SMB address manually.

If manual connection by name fails, use the IP address. Network discovery can be disabled or unreliable even when file sharing itself is working.

The username or password is rejected

Try these checks:

  1. Confirm that the Windows account can sign in locally to the PC.
  2. Confirm that the account has permission to the shared folder.
  3. Try the username without the computer name.
  4. Try COMPUTER-NAME\username.
  5. Make sure Caps Lock is off.
  6. Remove an outdated saved password from Passwords in System Settings, then try again.

Windows uses both share permissions and file-system permissions. A user must pass both permission checks. If access is denied after a successful login, the issue may be permissions rather than the password. For related Mac-side permission symptoms, see How to Fix Permission Denied Errors on a Shared Folder on a Mac.

You can open the folder but cannot create or edit files

The Windows account may have read-only access. The folder owner or Windows administrator should check:

  • The folder’s Sharing permissions.
  • The folder’s Security permissions.
  • Whether the account is included in an allowed group.
  • Whether the folder or drive is full.
  • Whether a file is locked by another program.

Some folders are intentionally shared as read-only. Do not change Windows permissions unless you understand who will gain access to the files.

The connection works by IP address but not by computer name

This usually indicates a name-resolution or network-discovery problem. Continue using the IP address as a temporary solution, or ask whoever manages the network to correct the computer-name resolution.

If the Windows PC receives a new IP address periodically, the saved address may stop working. A computer name is generally more convenient for a frequently used share when name resolution works correctly.

The connection drops during file transfers

Keep both devices awake and connected to the same network. Avoid moving large files over an unstable Wi-Fi connection. If possible, connect one or both computers through Ethernet.

Check whether the Windows PC enters sleep mode. Also verify that the router is not isolating wireless devices from one another; some guest networks prevent devices from communicating.

Files have unusual names or behave differently

Windows and macOS do not handle every file name, permission, and metadata rule identically. Avoid unusual characters in shared file and folder names, particularly when files will be used by both operating systems.

Some Windows-only files cannot be opened on a Mac without compatible software. Connecting to the shared folder provides access to the files; it does not make Windows applications run on macOS.

Security and Privacy Considerations

Only share folders that need to be available over the network. A share can expose its contents to other devices permitted to access the Windows network.

For a safer setup:

  • Use a password-protected Windows account.
  • Give users only the access they need.
  • Avoid sharing an entire drive when a single folder is sufficient.
  • Use a trusted private network rather than public Wi-Fi.
  • Disconnect the share when you are finished on a shared or public Mac.
  • Do not save credentials to the keychain on a Mac used by other people.

Never disable Windows security features permanently just to make a share work. If the connection requires a firewall or permission change, make the narrowest change necessary and restore the previous setting if it does not solve the problem.

Frequently Asked Questions

Can a Mac connect to a Windows shared folder?

Yes. Use Finder’s Go > Connect to Server command and enter an SMB address such as smb://ComputerName/ShareName.

Do both computers need to use the same Wi-Fi network?

They need to be reachable on the same local network. They can use Wi-Fi, Ethernet, or a combination of both, as long as the network allows the devices to communicate.

Can I connect without a Windows password?

Windows may allow guest access in some configurations, but guest sharing can be disabled and is not the safest option. A standard password-protected account with appropriate permissions is more reliable.

Where does the shared folder appear on the Mac?

After connecting, it appears in Finder under Locations and usually opens in a Finder window. It may also appear on the desktop if external disks and servers are configured to show there.

Can I copy files from the Mac to Windows?

Yes, if the Windows share grants your account write permission. If you can open files but cannot copy or save items, ask the Windows administrator to review both sharing and security permissions.

Final Thoughts

The most dependable way to connect a Mac to a Windows shared folder is Finder’s Go > Connect to Server command with an SMB address. Use the Windows computer name when it resolves correctly, or its IP address when it does not. If the connection fails, check the network, share name, Windows credentials, and both layers of Windows permissions before changing security settings.