---
title: "How to Set Up Network File Sharing on Windows 11 Over USB-C"
description: "Step-by-step guide to Windows 11 USB4 P2P file sharing over a USB-C cable and connecting in File Explorer — covering Public firewall blocks, PIN & whoami traps, and ipconfig."
url: "https://usb-c-transfer.com/network-file-sharing/windows/"
lang: "en"
---

# How to set up network file sharing on Windows 11 over USB-C

On Windows 11 laptops with USB4 or Thunderbolt ports, plugging in a USB-C data cable creates a **USB4 P2P Network Adapter** automatically. Follow the steps below to unblock Windows Firewall, find the cable’s hidden IP address, and connect in File Explorer.

## Share folders from your Windows 11 PC

Follow these six steps on the Windows 11 PC whose files you want to share over a USB4 or Thunderbolt cable:

1. Plug in the cable and open **Settings → Network & internet → Advanced network settings**. Under **Network adapters**, find the new Ethernet connection (often **Ethernet 2** or **Ethernet 3**, labeled **USB4(TM) P2P Network Adapter** or **Thunderbolt Networking**).
2. Open that adapter’s properties and change **Network profile type** from **Public network** to **Private network**. [Blocked by default] Windows treats every new USB-C cable link as a *Public* network, so Windows Firewall silently blocks incoming file sharing with no clear error explaining why.
3. Go back to **Advanced network settings → Advanced sharing settings**. Under **Private networks**, turn on both **Network discovery** and **File and printer sharing**. [Visible on Wi-Fi too] Windows listens for file sharing on every network connection at once. Turning this on opens your PC on *every* Private Wi-Fi network you use — not just the USB-C cable (and turning it on for Public or All Networks exposes you on café and hotel Wi-Fi too).
4. In File Explorer, right-click the folder you want to share → **Properties** → **Sharing** tab → **Advanced Sharing…** → check **Share this folder** → click **Permissions** and add your user account with Read or Change access. [Two separate permission menus] Windows checks *both* the **Sharing** tab and the separate **Security** tab — if your account is missing from either one, the other computer gets “Access denied.”
5. Make sure you know your exact Windows username and have a real account password that Windows can check over the network. [Windows PINs & hidden usernames] Windows Hello PINs and fingerprint logins **never work** for network file sharing. Even worse, your lock-screen display name often isn’t the username Windows expects — with a Microsoft account, it is frequently shortened to the first 5 letters of your email. Open Terminal and run `whoami` to see the exact username. If your Microsoft account is passwordless, lock Windows (`Win + L`) and sign in once with your full Microsoft password, or create a separate local user account (like `ShareUser`) under **Settings → Accounts → Other users** and give it permissions on both tabs.
6. Open **Terminal** (or Command Prompt), type `ipconfig`, scroll past your Wi-Fi, VPN, and virtual adapters, and find the USB4 adapter’s `Autoconfiguration IPv4 Address` (it starts with `169.254.`). [IP hidden from Windows Settings] Unlike your Wi-Fi connection, Windows 11’s Settings app doesn’t display the cable’s `169.254.x.x` IP anywhere — it only shows **IP assignment: Automatic (DHCP)**. You have to drop into Terminal with `ipconfig` to read it, and do it all over again whenever unplugging or restarting assigns a new IP.

## Connect from Windows 11 (File Explorer)

Follow these three steps on the Windows 11 PC you want to copy files onto or browse from:

1. Open File Explorer, click the address bar at the top (or press `Ctrl + L` / `Win + R`), type `\\169.254.x.x` using two backslashes and the other computer’s cable IP, and press Enter. [Doesn’t show up in Network] Even with file sharing turned on, the other computer won’t appear under **Network** in File Explorer’s sidebar over a USB-C cable (and if it does show up, it’s over slow Wi-Fi). File Explorer also has no obvious “Connect to Server” button — you have to know to type `\\169.254.x.x` into the path bar (forward slashes and `smb://` both fail), or dig into **This PC → undefined → Map network drive** and re-enter the IP whenever it changes.
2. In **Enter network credentials**, type the other computer’s username — sometimes needing a prefix like `TargetPC\Username` or `169.254.x.x\Username` — and its real password (not a PIN). [Stuck passwords & Windows 11 blocks] One mistyped password can get stuck in **Credential Manager → Windows Credentials** and reject valid logins until you delete the saved entry. Windows 11 also blocks guest shares by default — avoid forum scripts that turn off security checks globally.
3. If you map the folder as a network drive, expect it to break after a restart or sleep. [Breaks after sleep or restart] Windows tries to reconnect mapped drives before the USB-C cable finishes starting up, and the `169.254` address can change when you replug. Sleep cancels active copies with no resume.

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

When your transfer finishes, turn **File and printer sharing** back off under **Advanced sharing settings** (and undo any guest-access or signing changes) before connecting to shared or public Wi-Fi.

Try DirectConnect for zero-config transfers over USB-C

Get faster transfers and skip firewall switches, Windows PIN traps, and having to find and type in IP addresses.

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

## Also setting up the other computer?

If your second computer runs a different operating system, open its setup guide too — or read the [main file-sharing overview](https://usb-c-transfer.com/network-file-sharing) for cross-OS security risks and speed limits:

- [How to set up network file sharing on Mac →](https://usb-c-transfer.com/network-file-sharing/mac)
- [How to set up network file sharing on Linux →](https://usb-c-transfer.com/network-file-sharing/linux)
- [USB-C file transfer troubleshooting →](https://usb-c-transfer.com/troubleshooting)

## Questions and answers

### Why does Windows 11 Settings not show the IP address for my USB-C cable?

Unlike Wi-Fi, Windows 11 Settings only shows “IP assignment: Automatic (DHCP)” for a direct USB4 P2P Network Adapter without showing its 169.254.x.x IP address. Open Terminal (or Command Prompt), run ipconfig, and copy the Autoconfiguration IPv4 Address under the USB4 adapter.

### Why does Windows 11 say my network password is not correct over SMB?

Windows Hello PINs and fingerprint logins never work over SMB, and your lock-screen display name often isn’t your real Windows username (run whoami in Terminal to find it). If your Microsoft account is passwordless, lock Windows (Win + L) and sign in once with your full Microsoft password, or create a separate local sharing account.

### Does enabling Windows File and Printer Sharing expose my PC on Wi-Fi too?

Yes. Windows listens for file sharing on every network adapter at once. Turning it on under Private networks opens port 445 on every Wi-Fi network you have ever marked Private (home, office, coworking) — and enabling it under Public or All Networks exposes you on café and hotel Wi-Fi too.
