---
title: "Setup Guide for File Sharing Over USB-C (Mac, Windows & Linux)"
description: "How built-in network file sharing over a USB-C, Thunderbolt, or USB4 cable works across Mac, Windows 11, and Linux — security risks, speed limits, and step-by-step setup guides for each platform."
url: "https://usb-c-transfer.com/network-file-sharing/"
lang: "en"
---

# Setup guide for file sharing over USB-C

Every Mac, Windows 11 PC, and Linux computer can share files over a Thunderbolt or USB4 cable using built-in network sharing. It is free — and it requires setting up each operating system by hand while watching out for Wi-Fi exposure, changing IP addresses, and login traps.

## 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:

1. **Turn on sharing on the computer that has the files.** Choose which folders to share and which user accounts can open them.
2. **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.
3. **Connect from the other computer.** Type the address into Finder (`smb://169.254.23.7`) or File Explorer (`\\169.254.23.7`).
4. **Log in.** Enter the username and password of an account on the first computer. On Windows, that’s the account password, not the PIN.
5. **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](https://directconnect.app/) 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.→](https://usb-c-transfer.com/network-file-sharing/mac)
- [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.→](https://usb-c-transfer.com/network-file-sharing/windows)
- [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.→](https://usb-c-transfer.com/network-file-sharing/linux)

## 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.conf` and 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.

> **Warning: Remember to turn sharing back off**

Switch File Sharing back **Off** on Mac, Windows, or Linux (and undo any guest-access or security workarounds) as soon as your transfer finishes — before joining public or shared Wi-Fi.

## 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.x` time out with no explanation, and company-managed laptops often lock out File Sharing on port `445` altogether.
- **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.

### DirectConnect — skip manual network file sharing

Free 3-day trial · US$15 one-time

Removes the need to configure file sharing on either machine. Plug in your Thunderbolt or USB4 cable and each computer appears automatically — no need to find and type in IP addresses, and OS file sharing stays completely off.

- **Faster transfers:** Up to 20 Gb/s (2.5 gigabytes per second) on large files, and 2,000 small files in as little as a tenth of a second.
- **Zero configuration:** No file sharing settings, IP addresses or passwords on either computer, and port `445` stays closed on Wi-Fi.
- **You choose what’s shared:** Your whole drive, one folder, or nothing at all so files can only be sent to you. Read-only if you want.
- **Mac, Windows & Linux:** In either direction, over any Thunderbolt 3/4/5 or USB4 cable. One licence covers both computers.

[Go to website →](https://directconnect.app/)

[View speed tests](https://directconnect.app/tests/)

## 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.
