Server Message Block is a protocol that lets computers on the same network share files and printers
Server Message Block (SMB) is a set of rules that computers use to talk to each other when they need to share files, printers, or other resources across a local network. When you save a document to a shared folder on your office network, or print to a printer down the hall, SMB is the language your computer uses to ask for that. It works on Windows, Mac, and Linux machines, though the details differ slightly between them.
SMB runs in the background — you do not see it happening. You just see a folder icon labeled "shared" or click "print" and the job goes to a networked printer. SMB handles the request, checks permissions, and either grants or denies access. It has been around since the 1980s and is still the standard way most office networks handle file sharing.
Key Takeaways
- SMB is a network protocol that lets computers share files and printers without copying data to a USB drive or email.
- SMB version 3.1.1 (the current standard on modern Windows) includes encryption and is more secure than older versions like SMB1.
- SMB runs on port 445 and can be a security risk if exposed to the internet, so most networks block it at the firewall.
- If you cannot see a shared folder or printer on your network, SMB may be disabled on your computer or the device you are trying to reach.
How SMB moves files between computers
When you open a shared folder on your network, your computer sends an SMB request to the other computer asking for a list of files. That computer checks whether you have permission to see them, then sends back the list. If you open a file, SMB reads it from the other computer's hard drive and displays it on your screen — the file itself stays on the other computer unless you copy it.
The same process happens with printers. Your computer sends an SMB request to the printer's network address, asking it to accept a print job. The printer receives the job through SMB and adds it to its queue. This is why you can print from anywhere on the network without plugging a USB cable into the printer.
SMB also handles the back-and-forth of locking files so two people cannot edit the same document at the same time. When you open a shared file, SMB tells the other computer that you have it open. If someone else tries to open it, SMB either blocks them or warns them that the file is in use.
SMB versions and security differences
SMB has gone through several versions, and the older ones have known security problems. SMB1, released in the 1980s, is still found on some older Windows machines and network devices, but it has serious vulnerabilities. Hackers can exploit SMB1 to move sideways through a network after breaking into one computer — this is how the WannaCry ransomware spread in 2017.
SMB2 came out in 2006 and fixed some of SMB1's problems, but still had gaps. SMB3, released in 2012, added encryption so that files moving across the network are scrambled and harder to intercept. SMB3.1.1, the current version on Windows 10 and later, includes stronger encryption and better protection against certain attacks.
Most modern networks disable SMB1 entirely and require SMB3 or higher. If your network still has SMB1 enabled, your IT department should turn it off. You can check which version your Windows computer is using by opening PowerShell and running a command — your IT team can walk you through this if needed.
Why SMB can be a security risk
SMB was designed for trusted networks where all computers belong to the same organization. It assumes that computers on the network are not trying to attack each other. If SMB is exposed to the internet, attackers can try to break in by guessing passwords or exploiting known flaws in older SMB versions.
This is why firewalls block SMB traffic from the internet. Port 445, where SMB runs, should never be open to the outside world. If you work from home and need to access shared files, you should use a VPN (virtual private network) to create an encrypted tunnel to your office network, rather than opening SMB directly to the internet.
Some network devices — like older printers or storage systems — still run SMB1 because they were never updated. These devices become weak points that attackers can use to get into the network. Many organizations now require all network devices to support at least SMB2, or they isolate older devices on a separate network segment.
When SMB stops working and how to fix it
If you cannot see a shared folder or printer that you could see before, SMB might be disabled on your computer or the device you are trying to reach. On Windows, you can check whether SMB is turned on by going to Settings, then Apps, then Optional Features, and looking for "SMB 1.1/CIFS File Sharing Support" or "SMB Direct". If it is not listed, SMB is already on. If it is listed but grayed out, you may need to turn it on.
If the shared folder or printer is on another computer, that computer may have SMB disabled or the firewall may be blocking it. Ask the person who owns that computer to check their firewall settings. On a Mac, shared folders are set up in System Preferences under Sharing. On Linux, SMB is usually managed through a program called Samba.
If your network recently upgraded to SMB3 and older devices stopped working, those devices may only support SMB1 or SMB2. You have two choices: update the device's firmware if the maker released an update, or isolate it on a separate network so it cannot be used as an entry point for attacks.
SMB versus other file-sharing methods
Before SMB, people moved files by copying them to a floppy disk or later a USB drive and walking them to another desk. SMB made that unnecessary. Today, cloud services like OneDrive, Google Drive, and Dropbox offer another way to share files — they sync files to the internet instead of a local network.
Cloud services work anywhere you have an internet connection, but they send your files to a company's servers. SMB keeps files on computers you control, which some organizations prefer for privacy or compliance reasons. Many companies use both: SMB for day-to-day file sharing on the office network, and cloud services for sharing with people outside the office or for backup.
SMB is also faster than cloud services on a local network because files do not have to travel to the internet and back. If you are working with large video files or design files, SMB is usually noticeably quicker. The trade-off is that SMB only works on the local network, while cloud services work from anywhere.
Setting up SMB on a new network device
If you add a new printer, storage device, or computer to your network, it usually has SMB turned on by default. You just need to make sure it is set to use SMB3 or higher, not SMB1. Most modern devices do this automatically, but older or budget devices might default to SMB1 for backward compatibility.
Check the device's manual or settings page to see which SMB version it supports. If it only supports SMB1, either update its firmware or do not put it on the main network. Some organizations create a separate "guest" network for devices that cannot be updated, so they cannot access sensitive files.
Once the device is on the network, you set permissions through your operating system. On Windows, right-click a folder, choose Properties, go to the Sharing tab, and add the people or groups who should have access. On a Mac, go to System Preferences, Sharing, File Sharing, and add folders and users the same way. These permissions control who can see and edit files through SMB.
Frequently Asked Questions
Is SMB the same as Samba?
No. SMB is the protocol — the set of rules. Samba is a free software program that runs SMB on Linux and Unix computers. Samba lets Linux machines share files with Windows computers and printers as if they were on the same network. Most Linux servers that share files use Samba to speak SMB.
Can I use SMB to share files with someone outside my office network?
Not safely. SMB was not designed for the internet and should never be exposed directly to it. If you need to share files with someone outside your network, use a cloud service, email, or ask your IT department to set up a VPN. A VPN creates an encrypted tunnel so remote workers can access SMB safely.
Why do I see "SMB1 is disabled" in my Windows settings?
Windows disables SMB1 by default on newer versions because it has known security flaws. If you need to connect to an old device that only supports SMB1, you can turn it back on in Optional Features, but only if that device is on a trusted network. Most of the time, you should leave it off.
What happens if I turn off SMB on my computer?
You will not be able to see shared folders or printers on your network. If your work depends on accessing shared files or a networked printer, turning off SMB will break those connections. Only turn it off if you are sure you do not need network file sharing.
Does SMB work on my home Wi-Fi network?
Yes, SMB works on any local network, including home Wi-Fi. You can share files and printers between your computers at home the same way you would in an office. Just make sure your router firewall is not blocking port 445, and that all your devices support SMB3 or higher for security.