File sharing over a network in Windows (2024)

Windows 11 Windows 10 More...Less

Note:This article focuses on how to share files or folders over a Local Area Network (or LAN), such as connected computers within your homeor 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.

Windows 11Windows 10

Here are someanswers 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.

    File sharing over a network in Windows (1)
  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.

File sharing over a network in Windows (2)

File Explorer shows the Remove accessoption 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.

File sharing over a network in Windows (3)

To troubleshoot problems with sharing files or folders, follow thestepsbelow 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, ifyour computersconnect to the internet through a wireless router, make sure they all connect throughthe samewireless router.

  • If you're on a Wi-Fi network, set it to Private. To find out how, readMake 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 logokey+ 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

  • Share things with nearby devices in Windows

  • Share files in File Explorer

  • Make a Wi-Fi network public or private in Windows

  • Fix network connection issues in Windows

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.

    File sharing over a network in Windows (4)
  • Select a file, select the Share tab at the top of File Explorer, and then in the Share with section select Specific people.

    File sharing over a network in Windows (5)

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.

    File sharing over a network in Windows (6)
  • 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.

    File sharing over a network in Windows (7)

File Explorer shows the Remove accessoption ("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.

File sharing over a network in Windows (8)

To troubleshoot problems with sharing files or folders, follow thestepsbelow 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, ifyour computersconnect to the internet through a wireless router, make sure they all connect throughthe samewireless router.

  • If you're on a Wi-Fi network, set it to Private. To find out how, readMake 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 logokey+ 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

  • Share things with nearby devices in Windows

  • Share files in File Explorer

  • Make a Wi-Fi network public or private in Windows

  • Fix network connection issues in Windows

SUBSCRIBE RSS FEEDS

Need more help?

Want more options?

Discover Community Contact Us

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

File sharing over a network in Windows (9)

Microsoft 365 subscription benefits

File sharing over a network in Windows (10)

Microsoft 365 training

File sharing over a network in Windows (11)

Microsoft security

File sharing over a network in Windows (12)

Accessibility center

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

File sharing over a network in Windows (13)

Ask the Microsoft Community

File sharing over a network in Windows (14)

Microsoft Tech Community

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

File sharing over a network in Windows (17)

Online support

File sharing over a network in Windows (2024)
Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 6235

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.