Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Note: This article focuses on how to share files or folders over a Local Area Network (or LAN), such as connected computers within your home or workplace. If you are trying to find out how to share a file over the Internet, for example with a friend or family member, OneDrive provides easy ways to accomplish this. For more details, see Share OneDrive files and folders.

Here are some answers to common questions about changes to file and folder sharing in Windows 11:

To share a file or folder over a network in File Explorer, do the following:

  1. Right-click (or long-press) a file, and then select Show more options Give access to > Specific people.

    Sharing a file with specific people on a network
  2. Select a user on the network to share the file with, or select Everyone to give all network users access to the file.

If you select multiple files at once, you can share them all in the same way. It works for folders, too—share a folder, and all files in it will be shared.

Right-click or press a file or folder, then select Show more options Give access to > Remove access.

Stop sharing a file over a network

File Explorer shows the Remove access option for all files, even those that aren't being shared over a network.

Open File Explorer, then type \\localhost into the address bar.

Note: When you've shared a file from a folder in your user profile and you go to \\localhost, you'll see your user profile and all its files there. This doesn't mean that all of your files are shared—just that you have access to all your own files.

If you open File Explorer, go to Network, and see an error message ("Network discovery is turned off…."), you'll need to turn on network discovery to see devices on the network that are sharing files. To turn it on, select the Network discovery is turned off banner, then select Turn on network discovery and file sharing.

The Network and File Sharing prompt in the Network pane in Windows 11.

To troubleshoot problems with sharing files or folders, follow the steps below on all computers from which you're trying to share.

  • Update Windows. Ensuring all machines are as updated as they can be is key to making sure you aren't missing out on any driver or Windows updates. 
    Open Windows Update

  • Make sure the computers are on the same network. For example, if your computers connect to the internet through a wireless router, make sure they all connect through the same wireless router.

  • If you're on a Wi-Fi network, set it to Private. To find out how, read Make a Wi-Fi network public or private in Windows.

  • Turn on network discovery and file and printer sharing, and turn off password protected sharing.

    1. Select the Start  button, then select Settings .

    2. In the Find a setting search bar, type manage advanced sharing settings and select Manage advanced sharing settings from the suggested results.

    3. In the Advanced sharing settings window that appears, under Private, select Turn on Network discovery and Turn on file and printer sharing.

    4. Under All Networks, select Turn off password protected sharing.

  • Make sharing services start automatically.

    1. Press the Windows logo key  + R.

    2. In the Run dialog box, type services.msc, and then select OK.

    3. Right-click each of the following services, select Properties, if they're not running, select Start, and next to Startup type, select Automatic:

      • Function Discovery Provider Host

      • Function Discovery Resource Publication

      • SSDP Discovery

      • UPnP Device Host

Related topics

In Windows 10, some features of file and folder sharing over a network have changed, including the removal of HomeGroup. Read on for answers to common questions about other changes to file and folder sharing in Windows 10.

To share a file or folder in File Explorer, do one of the following:

  • Right-click or press a file, select Give access to > Specific people.

    Sharing a file with specific people on a network

  • Select a file, select the Share tab at the top of File Explorer, and then in the Share with section select Specific people.

    Sharing a file with specific people on a network

Select a user on the network to share the file with, or select Everyone to give all network users access to the file.

If you select multiple files at once, you can share them all in the same way. It works for folders, too—share a folder, and all files in it will be shared.

To stop sharing in File Explorer, do one of the following:

  • Right-click or press a file or folder, then select Give access to > Remove access.

    Stop sharing a file over a network

  • Select a file or folder, select the Share tab at the top of File Explorer, and then in the Share with section select Remove access.

    Stop sharing a file over a network

File Explorer shows the Remove access option ("Stop sharing" in older versions of Windows 10) for all files, even those that aren't being shared over a network.

Open File Explorer, then type \\localhost into the address bar.

Note: When you've shared a file from a folder in your user profile and you go to \\localhost, you'll see your user profile and all its files there. This doesn't mean that all of your files are shared—just that you have access to all your own files.

If you open File Explorer, go to Network, and see an error message ("Network discovery is turned off…."), you'll need to turn on network discovery to see devices on the network that are sharing files. To turn it on, select the Network discovery is turned off banner, then select Turn on network discovery and file sharing.

Turning on network discovery in File Explorer

To troubleshoot problems with sharing files or folders, follow the steps below on all computers from which you're trying to share.

  • Update Windows. Ensuring all machines are as updated as they can be is key to making sure you aren't missing out on any driver or Windows updates. 
    Open Windows Update

  • Make sure the computers are on the same network. For example, if your computers connect to the internet through a wireless router, make sure they all connect through the same wireless router.

  • If you're on a Wi-Fi network, set it to Private. To find out how, read Make a Wi-Fi network public or private in Windows.

  • Turn on network discovery and file and printer sharing, and turn off password protected sharing.

    1. Select the Start  button, then select Settings  > Network & internet , and on the right side, select Sharing options.

    2. Under Private, select Turn on Network discovery and Turn on file and printer sharing.

    3. Under All Networks, select Turn off password protected sharing.

  • Make sharing services start automatically.

    1. Press the Windows logo key  + R.

    2. In the Run dialog box, type services.msc, and then select OK.

    3. Right-click each of the following services, select Properties, if they're not running, select Start, and next to Startup type, select Automatic:

      • Function Discovery Provider Host

      • Function Discovery Resource Publication

      • SSDP Discovery

      • UPnP Device Host

Related topics

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Find solutions to common problems or get help from a support agent.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×