How to Map a Network Drive on Windows and Mac

Mapping a NAS or shared folder as a drive on your computer means you never have to type its address again. Here is how to set it up on Windows and Mac and keep it connected.

  1. What a mapped network drive actually does

    It takes a shared folder on another computer or a NAS and displays it inside your file browser as if it were a local drive, so you can open, drag, and save files into it just like any folder on your own machine.

  2. What you need before connecting

    Gather the target device's IP address or hostname, the exact shared folder path, and a username and password with permission to access that share before you start.

  3. Mapping a drive on Windows

    In File Explorer, right-click "This PC" and choose "Map network drive," then enter the path as \\IP-address\share-name, pick a drive letter, and supply different credentials if the default sign-in does not have access.

  4. Connecting on Mac

    In Finder, choose Go > Connect to Server, type smb://IP-address/share-name, and enter your account details. The shared folder then shows up in the Finder sidebar like any other volume.

  5. Making the connection survive a restart

    On Windows, tick "Reconnect at sign-in" when you map the drive so it comes back automatically after a reboot. On Mac, add the connected server to Login Items in System Settings for the same effect.

  6. What to check when the connection fails

    Work through this order: are both devices on the same local network, is the target's firewall blocking file-sharing (SMB) ports, are the credentials still correct, and are the SMB protocol versions on both ends actually compatible?

SMB versions can quietly break the connection

File sharing over a network drive almost always runs on SMB (Server Message Block). Older NAS units and legacy devices sometimes only support the old, insecure SMB1, which modern Windows and macOS versions disable by default for security reasons. If a drive that used to connect suddenly refuses to, checking whether the device needs SMB1 re-enabled β€” or better, whether it can be updated to support SMB2/SMB3 β€” is one of the most common fixes.

Mapped drive vs. synced cloud folder: different trade-offs

A mapped network drive only works while you are on the same network as the shared device (or connected to it via VPN), and it does not keep a local copy of files, so nothing is available offline. A synced cloud folder like the ones from major cloud storage providers keeps a local copy that works offline and updates automatically, at the cost of a subscription and files leaving your own network. Choose based on whether offline access or local-network-only privacy matters more for your use case.

Frequently Asked Questions

Do I need an internet connection to map a network drive?

No. As long as both devices are on the same local network β€” the same home or office router β€” you can connect without any internet access at all. Reaching the share from outside that network is a separate problem that requires a VPN or a dynamic DNS setup.

My mapped network drive suddenly disappeared. Why?

The most common causes are the target device going to sleep, its IP address changing because it was not set to a fixed address, or a temporary network interruption. Try reconnecting first, and if it keeps happening, give the target device a static IP address so its location on the network stops changing.