Connect Two Windows PCs on LAN: Step-by-Step Guide
In this article
Yes, you can connect two Windows computers on a Local Area Network (LAN) to share files and printers. This requires both devices to be on the same network, have Network Discovery enabled, and use matching network profile settings.
What You'll Need
- Two Windows 10 or Windows 11 computers
- A router or switch connecting both machines via Ethernet or Wi-Fi
- Administrator access on both computers
Step-by-Step
- Verify Network Connection: Ensure both computers are connected to the same local network. If using Wi-Fi, confirm they are on the same SSID. If using Ethernet, ensure they are plugged into the same router or switch. Note that labels may differ slightly by version or region.
- Set Network Profile to Private: On each computer, open Settings > Network & Internet. Click on your active connection (Wi-Fi or Ethernet). Under "Network profile type," select Private. This allows the PC to be discoverable by other devices on the local network.
- Enable Network Discovery: Open Control Panel > Network and Sharing Center. Click Change advanced sharing settings on the left. Under the Private network section, expand it and ensure Turn on network discovery is selected. Also check Turn on automatic setup of network connected devices.
- Enable File and Printer Sharing: In the same Advanced sharing settings window, under the Private section, scroll down to File and printer sharing. Select Turn on file and printer sharing. Click Save changes.
- Share a Folder: On the computer holding the data, right-click the folder you wish to share and select Properties. Go to the Sharing tab and click Advanced Sharing. Check Share this folder, set permissions if needed, and click OK. Then, in the Security tab, ensure the user account you want to access the folder has permissions.
- Access the Shared Folder: On the second computer, open File Explorer. In the left pane, click Network. You should see the first computer listed. Double-click it to view shared folders. Enter the username and password of the host computer when prompted.
Common Mistakes
One of the most frequent errors is leaving the network profile set to "Public." Public networks block discovery for security reasons, making the PC invisible to others. Another common issue is forgetting to enable File and Printer Sharing in the Advanced Sharing Settings, even after enabling Network Discovery. Additionally, mismatched workgroup names can sometimes cause visibility issues, though modern Windows versions handle this automatically. Always ensure both PCs are on the same subnet (e.g., 192.168.1.x).
Tips
Create a dedicated shared folder rather than sharing entire drives to maintain better security. Use strong passwords for user accounts to prevent unauthorized access. If you frequently access the same files, map the shared folder as a network drive for quick access. Disable guest access if possible to force authentication. Keep Windows updated to ensure network drivers and security patches are current.
Troubleshooting
If you cannot see the other computer, restart the Network Discovery service. Press Win + R, type services.msc, find Function Discovery Provider Host and Function Discovery Resource Publication, and restart them. Ensure firewalls are not blocking SMB ports (445). Temporarily disable third-party antivirus firewalls to test connectivity. Verify IP addresses are in the same range by running ipconfig in Command Prompt. If issues persist, try pinging the other computer's IP address from one machine to check basic connectivity.
Frequently Asked Questions
Can I connect two Windows PCs without a router?
Yes, using a crossover Ethernet cable or a direct USB-to-Ethernet adapter, but a router is standard for easier setup.
Why is my PC not showing up in the Network list?
This usually happens due to Public network settings, disabled Network Discovery, or firewall blocks.
Do I need a password to access shared files?
Yes, unless you explicitly disable password protection in Advanced Sharing Settings, which is not recommended.
How do I map a shared folder as a drive?
In File Explorer, click Map network drive and enter the path like \\ComputerName\FolderName.
Is SMB1 required for older Windows versions?
No, SMB2/3 is sufficient for Windows 7 and later. SMB1 is insecure and often disabled by default.
Can I share printers this way?
Yes, if you enable Printer Sharing in the same Advanced Sharing Settings menu.