What network file sharing is
Network file sharing is built into macOS, Windows and Linux, and all three use the same standard, called SMB. It’s how offices and organisations share drives between computers.
Plugging a USB-C cable between two computers doesn’t make either one show up as a drive. With Thunderbolt or USB4 ports, the cable creates a small private network between them, like a very fast network cable. A network on its own doesn’t move any files. Something has to share them across it, and on a computer with no extra apps, that something is network file sharing.
How it works
The routine is the same whichever computers you have:
- Turn on sharing on the computer that has the files. Choose which folders to share and which user accounts can open them.
- Find that computer’s cable address. The cable gets a temporary IP address such as
169.254.23.7. You look it up in Settings or with a command. - Connect from the other computer. Type the address into Finder (
smb://169.254.23.7) or File Explorer (\\169.254.23.7). - Log in. Enter the username and password of an account on the first computer. On Windows, that’s the account password, not the PIN.
- Copy your files, then turn sharing off again so the shared folders aren’t left open on Wi-Fi.
The cable address can change each time you plug in, so you often have to look it up, connect and log in again. To copy in both directions, you set up sharing on both computers.
The easy option: DirectConnect skips all of this. Install it on both computers and plug in. Each one shows up as a drive on the other, with no sharing to set up, no addresses to type and no passwords. Next time, just plug in.
Step-by-step setup guides by operating system
Choose the computer whose files you want to share — or open both guides if you are connecting two different operating systems (such as a Mac and a Windows 11 PC):
- How to set up network file sharing on Mac5 setup steps + 3 Finder connect steps. Covers Thunderbolt Bridge, Wi-Fi port 445 exposure, the hidden Windows File Sharing box, and reconnecting by 169.254 IP.
- How to set up network file sharing on Windows 116 setup steps + 3 File Explorer connect steps. Covers Public→Private firewall blocks, Private Wi-Fi exposure, Windows PIN & whoami traps, finding the hidden IP via ipconfig, and typing \\169.254.x.x.
- How to set up network file sharing on Linux6 setup steps + 2 Files connect steps. Covers thunderbolt_net, IPv4 Link-Local, restricting Samba away from Wi-Fi in smb.conf, smbpasswd, and UFW/firewalld.
Security risks to be aware of
Plugging a USB-C cable between two laptops feels private, like using an external drive. Built-in file sharing does not stay inside the cable: it turns your laptop into a network file server (on port 445) that listens across your wireless and wired connections too.
- Mac, Windows, and Linux all expose sharing on Wi-Fi too. On Mac, turning on File Sharing opens sharing on every connection at once (Wi-Fi, Ethernet, and the USB-C cable) with no switch in Settings to limit it to the cable. On Windows, file sharing also listens on every connection at once — turning it on opens your PC on every network you have ever marked Private (home, office, or coworking Wi-Fi), and enabling it for Public or All Networks exposes you on café and hotel Wi-Fi too. On Linux, Samba also listens on Wi-Fi and Ethernet by default unless you manually lock down both
/etc/samba/smb.confand your firewall to the cable only. - Online Windows fixes often weaken security everywhere. Windows 11 blocks insecure guest sharing and requires extra security checks by default. Forum workarounds often tell you to turn off Password protected sharing, allow guest logins in the registry, or turn off SMB signing — weakening protection on every Wi-Fi network your laptop joins afterward.
- Shared folders stay open across restarts until you remember to remove them and turn sharing back off — and on Mac, ticking Windows File Sharing also saves an older NTLM password hash on your computer.
Speed limits and other problems
Even after you get through the setup steps on a 40 Gb/s Thunderbolt 4 or USB4 cable, built-in network file sharing still runs into these limits and problems:
- Slower than the cable rating on large files: Real disk-to-disk copies over built-in sharing usually top out around 8–10 Gb/s because of signing, encryption, and operating-system overhead.
- Crawls on folders of small files: Built-in sharing opens, checks, writes, and closes files mostly one at a time, often dropping to ~250 Mb/s on photo libraries or project folders.
- Laptops fall asleep mid-copy — with no pause or resume: Walk away during a big transfer and the sending laptop can still sleep (or get bumped unplugged) and kill the copy, leaving a half-copied folder behind to restart manually.
- VPNs and work laptops: VPN kill switches or local-network blocks make
169.254.x.xtime out with no explanation, and company-managed laptops often lock out File Sharing on port445altogether. - Mac → Windows filename errors & junk files: Macs allow characters (
:,?,*, trailing spaces) that Windows forbids, which can abort a large copy mid-way with a cryptic error (-36) while scattering hidden._*duplicate files across Windows folders. - Sharing a whole folder just to send one file: There is no quick drop-to-send workflow — even for one video, you have to expose a folder, copy from the other computer, and remember to unshare it later.
Questions and answers
Does turning on file sharing over USB-C also expose my computer on Wi-Fi?
Yes — on Mac, Windows, and Linux. macOS opens file sharing on every network connection at once (Wi-Fi and cable) with no switch in Settings to limit it to the cable. Windows opens file sharing across every network marked Private (and on Public Wi-Fi too if you enable it for All Networks). Linux Samba also listens on Wi-Fi and Ethernet by default unless you manually restrict it to thunderbolt0 in /etc/samba/smb.conf and your firewall.
How do I make sure my copy uses the USB-C cable instead of slow Wi-Fi?
Never click the other computer’s name in Finder or File Explorer — it often routes over Wi-Fi instead. Look up the cable’s temporary 169.254.x.x IP address and connect directly to that address, or turn Wi-Fi off on both laptops while copying.
Why does connecting to 169.254.x.x time out even when both laptops are plugged in?
The three most common causes are a VPN with a kill switch or local-network blocking enabled on either laptop, Windows Firewall leaving the new USB4 connection set to Public instead of Private, or a company-managed laptop whose IT policy blocks File Sharing on port 445.