Cannot Seem to Password Protect Shared Folders over LAN using Crossover Cable

Abstract: Fixes inability to password protect shared folders on Windows 10 when connecting two PCs via crossover cable by switching the network profile to Private and enabling password-protected sharing.

Created: 2026-10-24 by

Directly connecting two Windows 10 Pro PCs via a crossover cable creates an isolated network segment that often defaults to the "Public" profile, which disables password-protected sharing. To enforce authentication on bi-directional shares, you must manually assign each adapter to a "Private" network profile and explicitly enable password protection in Advanced Sharing Settings. This ensures that unauthorized users cannot access shared resources without valid credentials.

Understanding the Network Profile Barrier

The primary reason password protection fails in this specific setup is how Windows categorizes network connections. When you connect two computers directly with a crossover cable (or a modern auto-MDI/MDIX Ethernet port), Windows typically detects the connection as an untrusted network. By default, it applies the "Public" network profile. The Public profile is designed for maximum security in coffee shops or airports, meaning it hides your PC from other devices and turns off file sharing features entirely, including the ability to prompt for passwords. To fix this, you need to treat the direct link as a trusted home or office environment. You can change the network profile by navigating to Settings > Network & Internet > Ethernet. Click on the connected Ethernet adapter and switch the profile setting from "Public" to "Private". This action tells Windows that the network is under your control, allowing you to configure sharing permissions securely. Without this step, any changes to sharing settings may be ignored or reset because the system assumes the network is unsafe for local resource discovery.

Enabling Password-Protected Sharing

Once the network profile is set to Private, you must ensure that the specific sharing protocol requires authentication. Open the Control Panel and navigate to Network and Sharing Center. From there, click on Change advanced sharing settings in the left sidebar. You will see three main sections: Private, Guest or Public, and All Networks. In the Private section, locate the option labeled Password protected sharing. Ensure this is turned On. If it is turned off, anyone on the same network segment can access shared folders using anonymous guest accounts. Turning it on forces Windows to require a username and password that matches an account existing on the host machine. It is critical to perform this configuration on both computers if you want bi-directional sharing where both machines can protect their own outgoing shares while accessing the other. For more details on general LAN file sharing configurations, see Enable WIN10/11 LAN File Sharing.

Configuring User Accounts for Access

Enabling password protection only works if the remote user has a valid account on the host system. Since these are two distinct physical machines, they do not share a domain controller or automatic credential sync. You must create identical user accounts on both PCs if you want seamless access, or use the credentials of one PC to log into the other. Navigate to Settings > Accounts > Family & other users and add a new local user account. Give this account a strong password. Then, go to Settings > Accounts > Your info and change the account type to Administrator if needed, though standard user rights are often sufficient for file access. On the second PC, repeat this process. When you try to access a shared folder on PC A from PC B, Windows will prompt you for credentials. Enter the username and password created on PC A. If you prefer not to create duplicate accounts, you can use the built-in Administrator account, but note that Microsoft recommends against using the default Administrator account for daily operations due to security implications. Alternatively, you can map network drives using the net use command in Command Prompt to store credentials permanently, avoiding repeated prompts.

Verifying Share Permissions and Security Settings

After configuring the network and user accounts, you must verify the actual folder permissions. Right-click the folder you wish to share and select Properties, then go to the Sharing tab. Click Advanced Sharing and check Share this folder. Here, you can manage who has access. Click Permissions to define whether users have Read, Change, or Full Control rights. Next, switch to the Security tab. This is a common point of confusion. The Sharing tab controls network access, while the Security tab controls local NTFS permissions. Both must allow the user account you created. If the Security tab does not list your user, click Edit > Add and type the username. Ensure that the user has at least Read & Execute permissions. If you encounter issues where the share appears but access is denied despite correct passwords, check the Local Security Policy. Press Win + R, type secpol.msc, and navigate to Local Policies > Security Options. Look for Network access: Sharing and security model for local accounts. Ensure this is set to Classic - local users authenticate as themselves. If it is set to Guest-only, password protection will be bypassed. For further insights on managing access restrictions, review Allowing LAN Access on Windows XP and Windows 7 Machines: A Security Consideration.

Troubleshooting Common Connectivity Issues

Even with correct settings, connectivity problems can arise. First, ensure that both PCs are on the same subnet. In a direct crossover connection, Windows usually assigns IP addresses automatically via APIPA (Automatic Private IP Addressing) in the range 169.254.x.x. If one PC has a static IP or a different subnet mask, they cannot communicate. You can check this by opening Command Prompt and running ipconfig. Second, verify that the Function Discovery Resource Publication service is running. This service allows your PC to be discovered by other devices on the network. Go to Services.msc, find the service, and set its startup type to Automatic. Restart the service after changing the network profile to Private. Finally, test the connection by pinging the other PC's IP address from the Command Prompt. If the ping fails, check your firewall settings. Windows Firewall should allow File and Printer Sharing rules for the Private network profile. If the ping succeeds but file sharing still fails, restart the Lanman Workstation service on both machines to refresh the network stack.

Frequently Asked Questions

Why can't I see the other computer in Network Explorer?

Windows 10 disables network discovery by default on Public networks. Switching the Ethernet adapter to a Private profile enables discovery. Additionally, ensure the Function Discovery services are running on both machines to allow them to broadcast their presence to the network.

Do I need to disable the Windows Firewall for direct connections?

No, disabling the firewall is insecure and unnecessary. Instead, ensure that the "File and Printer Sharing" exceptions are enabled specifically for the Private network profile in Windows Defender Firewall settings. This allows traffic on ports 445 and 139 while keeping other threats blocked.

Can I use a standard USB Ethernet adapter instead of a crossover cable?

Yes, most modern Ethernet adapters support Auto-MDIX, which automatically adjusts the pinout to handle straight-through cables. However, verifying that both PCs receive an IP address via ipconfig is essential to confirm the physical link is active regardless of cable type.

What if I forget the password for the shared folder account?

If you forget the password for the local account used for sharing, you must reset it on the host machine itself. Navigate to Settings > Accounts > Sign-in options and change the password. Once changed, you must use the new password when accessing the share from the client machine.

Is it safe to share folders over a direct crossover cable?

Yes, it is generally safe provided you use strong passwords and keep the network profile as Private. Since there is no internet gateway involved, the risk of external attacks is minimal. However, always ensure that sensitive data is encrypted or restricted to specific user accounts to prevent unauthorized local access.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More