TechBuzzPro

SMB File Sharing Not Working on Windows 11? Fix It

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

SMB file sharing on Windows 11 usually breaks for one of four reasons: the network is set to Public instead of Private, Network Discovery and File and Printer Sharing are turned off, the SMB 1.0 client or server feature is disabled, or the sharing service (LanmanServer) is not running. Work through the checks below in order — most people fix it at step 3 or 4 — and you will almost always get a working share back without reinstalling Windows or touching the registry. Before you start, make sure both PCs are on the same network, that the PC hosting the files is powered on and awake, and that you know the username and password of an account on that PC. Menu labels in Windows 11 can differ slightly between builds, editions and regions, so if a label is worded a little differently on your machine, look for the closest match.

What You'll Need

  • Two Windows 11 PCs on the same router or switch (wired or Wi-Fi), with the host PC switched on and not asleep.
  • An account on the host PC with a password — Windows file sharing rejects blank-password accounts by default.
  • Administrator rights on both PCs to change network and sharing settings.
  • The exact name of the shared folder or the host PC's name (find it under Settings > System > About).

Step-by-Step

  1. Set the network profile to Private. Open Settings > Network & internet. Click Wi-Fi or Ethernet depending on how you are connected, then click the network you are on. Under Network profile type, select Private network. Windows blocks discovery and sharing on Public networks by design, so this single change fixes a large share of cases.
  2. Turn on discovery and sharing in one place. Go to Control Panel > Network and Internet > Network and Sharing Center > Advanced sharing settings. Under the Private section, turn on Network discovery and File and printer sharing. Expand All Networks and make sure Password protected sharing is on if you want to require credentials (recommended) or off for open access on a trusted home network.
  3. Start the sharing services. Press Windows key + R, type services.msc and press Enter. Find Server (LanmanServer) and confirm it is Running with Startup type set to Automatic; start it if it is stopped. Do the same for Workstation, Function Discovery Provider Host and Function Discovery Resource Publication. These last two are what make your PC visible in the Network view.
  4. Re-share the folder properly. Right-click the folder, choose Properties > Sharing > Advanced Sharing, tick Share this folder, then click Permissions and give the account you will connect with at least Read (Change if they need to write). Click OK, then go to the Security tab and confirm the same account has NTFS permissions too — share permissions and NTFS permissions are separate, and the stricter of the two wins.
  5. Connect by IP address instead of by name. On the second PC, open File Explorer, click the address bar, and type \\192.168.1.50\ShareName using the host's actual IPv4 address (find it with ipconfig on the host). If the IP works but the PC name does not, the problem is name resolution, not sharing — see Troubleshooting.
  6. Check the SMB protocol version. Open Control Panel > Programs > Turn Windows features on or off. Confirm SMB Direct and SMB 1.0/CIFS File Sharing Support are handled deliberately: leave SMB 1.0 off unless you are connecting to a genuinely old NAS or printer, and instead make sure the modern SMB 2/3 client is present (it is built in and cannot be removed). If a device only speaks SMB 1.0, enabling the client is the only fix — but treat it as a last resort and only on a trusted network.
  7. Allow SMB through the firewall. Open Windows Security > Firewall & network protection > Allow an app through firewall and confirm File and Printer Sharing is ticked for Private. If you use a third-party antivirus firewall, check its network rules too, since it can silently block port 445.
  8. Reconnect with saved credentials cleared. If you are prompted for a password that keeps failing, open Control Panel > User Accounts > Credential Manager > Windows Credentials and remove any stored entry for that server, then reconnect and re-enter the username as HOSTPCNAME\Username.

Common Mistakes

  • Setting the network to Private on one PC but leaving the other on Public — both ends need discovery allowed.
  • Granting share permissions but forgetting NTFS permissions on the Security tab, which produces a confusing "access denied" even though sharing looks correct.
  • Using a Microsoft account email as the username. For local shares, use the local account name, and prefix it with the PC name if there are duplicates.
  • Leaving the host PC's network adapter set to a metered connection or letting it sleep — the share drops the moment it sleeps.
  • Assuming the folder is shared when only Advanced Sharing was opened. The checkbox must be ticked and applied.

Tips

  • Give the host PC a DHCP reservation in your router so its IP address does not change and mapped drives keep working.
  • Map the share once with Map network drive in File Explorer and tick Reconnect at sign-in to avoid retyping the path.
  • Test from the host itself first by typing \\localhost in File Explorer — if that fails, the problem is local to the host, not the network.
  • Keep both PCs on the same Windows 11 build family where possible; mixed very old and very new SMB configurations are a common source of negotiation failures.

Troubleshooting

If the share is still unreachable, isolate the layer that is failing. Ping the host by IP from the second PC: no reply means a network or firewall problem, not a sharing problem. If ping works but the name does not resolve, add a manual entry or simply use the IP path permanently. If you get "The specified network name is no longer available", restart the Server service on the host and try again. If you get an access-denied error, re-check both permission layers and clear stored credentials. If the Network view shows nothing at all but direct IP access works, the Function Discovery services are the usual culprit. As a final step, run netsh winsock reset in an elevated Command Prompt and reboot — this resets the network stack without deleting files, though you will need to re-check any custom firewall rules afterwards. Do not disable the firewall entirely as a workaround; allow File and Printer Sharing instead.

Frequently Asked Questions

Why can I reach the share by IP but not by PC name?

Name resolution is failing, usually because discovery services are stopped or the network is Public. Start the Function Discovery services and set the network to Private, or just keep using the IP path.

Do I need to enable SMB 1.0 on Windows 11?

No, not for Windows-to-Windows sharing. Only enable it if an older NAS or printer requires it, and only on a trusted network, because it is an insecure protocol.

Why does it ask for a password I never set?

Windows requires a password on the account doing the sharing. Add a password to that local account, or create a dedicated sharing account with one.

Does this work the same on Windows 11 Home and Pro?

The sharing settings are in the same places, but Home has fewer advanced sharing options. The Control Panel route in step 2 works on both editions.

Will resetting the network stack delete my files?

No. netsh winsock reset only resets network configuration; your files and shares stay intact, but custom firewall rules may need re-adding.