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:
-
Right-click (or long-press) a file, and then select Show more options >Give access to > Specific people.
-
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 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.
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.
-
Select the Start button, then select Settings .
-
In the Find a setting search bar, type manage advanced sharing settings and select Manage advanced sharing settings from the suggested results.
-
In the Advanced sharing settings window that appears, under Private, select Turn on Network discovery and Turn on file and printer sharing.
-
Under All Networks, select Turn off password protected sharing.
-
-
Make sharing services start automatically.
-
Press the Windows logokey+ R.
-
In the Run dialog box, type services.msc, and then select OK.
-
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.
-
Select a file, select the Share tab at the top of File Explorer, and then in the Share with section select Specific people.
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.
-
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 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.
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.
-
Select the Start button, then select Settings > Network & internet, and on the right side, select Sharing options.
-
Under Private, select Turn on Network discovery and Turn on file and printer sharing.
-
Under All Networks, select Turn off password protected sharing.
-
-
Make sharing services start automatically.
-
Press the Windows logokey+ R.
-
In the Run dialog box, type services.msc, and then select OK.
-
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.
Microsoft 365 subscription benefits
Microsoft 365 training
Microsoft security
Accessibility center
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.
Online support