How to Set Up a Local Network Between Computers in Windows 10 and Windows 11
A complete practical guide to connecting Windows PCs on the same LAN, enabling network discovery, sharing folders, setting permissions, testing access, and fixing common local network problems.
🖥 Windows 10🪟 Windows 11📁 File Sharing🌐 LAN Setup🔐 Permissions
Overview
What Is a Local Network Between Windows Computers?
A local network, also called a LAN, connects computers and devices inside one home, office, or small business network. When two or more Windows PCs are connected to the same router, switch, Wi-Fi network, or Ethernet segment, they can exchange files, use shared printers, access network drives, and communicate without using the Internet.
In Windows 10 and Windows 11, a local network usually depends on several core settings: a Private network profile, Network Discovery, File and Printer Sharing, correct user permissions, and a firewall configuration that allows local SMB traffic.
🌐 Same network
All computers must be connected to the same router, switch, Wi-Fi network, or trusted LAN segment.
🔎 Discovery
Network Discovery allows Windows PCs to find each other in File Explorer and network dialogs.
📁 Shared folders
Shared folders define which files other users can read, change, or copy over the network.
🔐 Permissions
Access is controlled by both sharing permissions and local file system permissions.
ℹ️
Important
Do not enable file sharing on public Wi-Fi networks such as hotels, airports, cafés, or open guest networks. Use the Private profile only on networks you trust.
Preparation
Before You Set Up a Local Network in Windows 10 or Windows 11
Before changing Windows settings, make sure the physical or wireless network is working correctly. File sharing will not work reliably if the computers are connected to different routers, isolated guest Wi-Fi networks, VPN-only networks, or different VLANs.
Requirement
What to Check
Recommended Setting
Network connection
Each PC is connected by Ethernet or Wi-Fi
Same router or same local subnet
Network profile
Windows marks the network as Public or Private
Private
User account
Remote access requires valid credentials unless password-protected sharing is disabled
Use a password-protected local or Microsoft account
Firewall
Windows Defender Firewall or third-party firewall can block sharing
Allow File and Printer Sharing on private networks
Computer name
Each PC should have a unique name
Use short names such as DESKTOP-PC or OFFICE-LAPTOP
Step 1
Set the Network Profile to Private in Windows
The Private network profile tells Windows that the current network is trusted. This is required for easy local discovery and sharing. If the network is set to Public, Windows hides your PC from other devices and blocks many sharing features by default.
🖥 Windows 10
🪟 Windows 11
Open Settings using Win + I.
Go to Network & Internet.
Select Wi-Fi or Ethernet, depending on your connection.
Click the current network name.
Under Network profile, select Private.
Open Settings with Win + I.
Go to Network & internet.
Open Wi-Fi or Ethernet.
Click your active network connection.
Under Network profile type, choose Private network.
✅
Best Practice
Use the Private profile for home and office networks only. Switch back to Public when using untrusted networks.
Step 2
Enable Network Discovery and File Sharing in Windows
After setting the network profile to Private, enable the sharing features that make your computer visible to other PCs on the LAN.
🖥 Windows 10
🪟 Windows 11
Open Control Panel.
Go to Network and Internet → Network and Sharing Center.
Click Change advanced sharing settings.
Expand Private.
Turn on Network discovery.
Turn on File and printer sharing.
Click Save changes.
Open Settings.
Go to Network & internet → Advanced network settings.
Open Advanced sharing settings.
Under Private networks, enable Network discovery.
Enable File and printer sharing.
Make sure these settings are not enabled for Public networks unless you have a specific reason.
💡
Optional SettingPassword-protected sharing is safer when enabled because users must enter a valid username and password from the computer hosting the shared folder. Disable it only on a trusted home network when you deliberately want easier access.
Step 3
Check the Computer Name and Workgroup for Windows File Sharing
Modern Windows versions do not require HomeGroup, and HomeGroup has been removed. However, unique computer names and a consistent workgroup can still make local network management easier.
Press Win + R, type sysdm.cpl, and press Enter.
Open the Computer Name tab.
Check the Full computer name. Each PC should have a unique name.
Click Change if you want to rename the computer or change the workgroup.
Use the same workgroup name on all PCs, for example WORKGROUP.
Restart the computer if Windows asks you to apply the change.
⚠️
Avoid Duplicate Names
Two computers with the same name can cause discovery problems, connection errors, and confusing entries in File Explorer.
Step 4
How to Share a Folder Between Computers on a Local Network
The safest method is to create a dedicated folder for LAN sharing instead of sharing an entire drive. This gives you better control over what other users can access.
Create a folder, for example C:\Shared or D:\LAN-Files.
Right-click the folder and select Properties.
Open the Sharing tab.
Click Advanced Sharing.
Enable Share this folder.
Enter a clear share name, for example Shared or OfficeFiles.
Click Permissions and define who can access the share.
Click OK to save the settings.
After sharing the folder, Windows creates a network path like this:
Network Path Example\\COMPUTER-NAME\Shared
You can use this path from another computer to open the shared folder directly.
Step 5
Configure Sharing Permissions and NTFS Permissions Correctly
Windows uses two permission layers for shared folders: Share permissions and NTFS security permissions. The most restrictive result applies. For example, if Share permissions allow Full Control but NTFS permissions allow only Read, the remote user will only have Read access.
Access to files on the local disk and over the network
User credentials
Windows user accounts and passwords
Which account is allowed to connect
Recommended Permission Setups
Read-only sharing: allow Read permission for users who only need to copy or open files.
Collaborative folder: allow Change or Modify only for trusted accounts that need to edit files.
Avoid wide-open access: do not give Full Control to Everyone unless this is a temporary test folder on a trusted network.
Use named accounts: for better security, create or use a specific Windows account with a password on the host PC.
🔐
Security Tip
For a small office network, use individual Windows accounts instead of a single shared account. This makes it easier to revoke access later.
Step 6
How to Access a Shared Folder from Another Windows Computer
Once the folder is shared, open it from another computer using File Explorer, the Run dialog, or a mapped network drive.
Method 1: Open the Network Section in File Explorer
Open File Explorer.
Click Network in the left pane.
Double-click the computer that hosts the shared folder.
Open the shared folder.
Enter the username and password if Windows asks for credentials.
Method 2: Use the Direct Network Path
Press Win + R.
Type the network path in this format:
Network Path by Computer Name\\COMPUTER-NAME\ShareName
You can also use the IP address if name resolution is not working:
Network Path by IP Address\\192.168.1.25\ShareName
Method 3: Map the Shared Folder as a Network Drive
Open File Explorer.
Right-click This PC and select Map network drive.
Choose a drive letter, for example Z:.
Enter the folder path, for example \\OFFICE-PC\Shared.
Enable Reconnect at sign-in if you want the drive to stay available after reboot.
Click Finish.
Optional
Set Static IP Addresses for a More Reliable Windows Local Network
Most home and office networks use DHCP, where the router automatically assigns IP addresses. This is usually fine. However, if computers often disappear from the Network section or mapped drives break after reboot, a static IP address or DHCP reservation can make access more predictable.
Option A: Use DHCP Reservation on the Router
This is the best method. Log in to your router and reserve a fixed IP address for each computer by its MAC address. Windows stays configured for automatic addressing, but the router always gives the same IP to the same device.
Option B: Set a Static IP in Windows
Press Win + R, type ncpa.cpl, and press Enter.
Right-click your active Ethernet or Wi-Fi adapter and select Properties.
Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
Select Use the following IP address.
Enter an IP address in your network range, for example 192.168.1.25.
Enter the subnet mask, usually 255.255.255.0.
Enter the default gateway, usually your router address, such as 192.168.1.1.
Enter DNS servers, for example your router address or another trusted DNS server.
Click OK.
⚠️
Avoid IP Conflicts
Do not assign the same static IP address to two devices. If possible, configure DHCP reservations in the router instead of manually setting static addresses on each PC.
Optional
How to Share a Printer on a Local Network in Windows
If one computer has a USB printer connected, you can share it with other computers on the same local network.
Open Settings → Bluetooth & devices → Printers & scanners in Windows 11, or Settings → Devices → Printers & scanners in Windows 10.
Select the printer you want to share.
Open Printer properties.
Go to the Sharing tab.
Enable Share this printer.
Enter a simple share name, for example HP-Laser.
On another PC, add the printer from Printers & scanners or connect directly with \\COMPUTER-NAME\HP-Laser.
Diagnostics
How to Test Whether the Local Network Works
If sharing does not work immediately, test the network in layers: IP connectivity first, then name resolution, then Windows file sharing.
1. Find the IP Address of Each Computer
Open Command Prompt and run:
Command Promptipconfig
Look for the IPv4 Address, for example 192.168.1.25.
2. Ping the Other Computer
From one PC, run:
Command Promptping 192.168.1.25
If you receive replies, the basic network connection is working.
3. Test Access to the Shared Folder
Use the Run dialog:
Run Dialog or File Explorer\\192.168.1.25\Shared
4. Check Name Resolution
If IP access works but computer-name access does not, test:
Command Promptping COMPUTER-NAME
If this fails, use the IP address for mapped drives or check Network Discovery, DNS, router settings, and firewall rules.
Troubleshooting
Fix: Windows Computers Cannot See Each Other on the Local Network
Network browsing in Windows can be inconsistent, especially after updates, router changes, VPN use, or firewall changes. Use the checklist below to solve the most common issues.
Problem
Possible Cause
Fix
Computer is not visible in Network
Network Discovery is off or network profile is Public
Set profile to Private and enable Network Discovery
Access denied
Incorrect credentials or insufficient permissions
Check username, password, Share permissions, and Security tab permissions
Windows asks for a password repeatedly
Wrong saved credentials
Open Credential Manager and remove the old entry for that computer
Ping works, but file sharing does not
Firewall blocks SMB or File and Printer Sharing
Allow File and Printer Sharing for Private networks
Mapped drive disconnects after reboot
IP address changes or credentials are not saved
Use DHCP reservation and enable reconnect at sign-in
One PC can access another, but not vice versa
Different sharing, firewall, or account settings on each PC
Repeat all settings on both computers
Check Required Windows Services
Press Win + R, type services.msc, and check that these services are running or set to their default startup type:
Function Discovery Provider Host
Function Discovery Resource Publication
SSDP Discovery
UPnP Device Host
Server
Workstation
Allow File and Printer Sharing in Windows Defender Firewall
Open Windows Security.
Go to Firewall & network protection.
Click Allow an app through firewall.
Click Change settings.
Find File and Printer Sharing.
Allow it for Private networks.
Do not enable it for Public networks unless you fully understand the risk.
🛑
Security Warning
Do not enable old SMBv1 unless you must connect to very old network devices. SMBv1 is outdated and creates unnecessary security risk. Modern Windows file sharing should use newer SMB versions.
FAQ
Frequently Asked Questions About Setting Up a Local Network in Windows
Do I need Internet access for a local network between Windows computers?
No. A LAN can work without Internet access. The computers only need to be connected to the same local router, switch, Ethernet network, or Wi-Fi access point.
Do Windows 10 and Windows 11 still support local file sharing?
Yes. Windows 10 and Windows 11 still support local file sharing using shared folders, SMB, user accounts, permissions, and mapped network drives.
Why can I access a shared folder by IP address but not by computer name?
This usually means basic network connectivity works, but name resolution or discovery is failing. Use the IP address in the network path, check Network Discovery, restart the router, and verify that required discovery services are running.
Should I disable password-protected sharing?
For security, keep password-protected sharing enabled. Disable it only on a trusted home network when convenience is more important than strict access control.
Can I share an entire drive over the local network?
Yes, but it is usually not recommended. Share a specific folder instead. This reduces the risk of accidentally exposing system files, personal data, backups, or application folders.
What is the best way to access a shared folder every day?
Map the shared folder as a network drive and enable Reconnect at sign-in. For best reliability, also reserve a fixed IP address for the host PC in your router.
🔗 Bottom Line
To set up a local network between Windows computers, connect all PCs to the same trusted network, set the profile to Private, enable Network Discovery and File and Printer Sharing, create a shared folder, configure permissions, and test access with \\COMPUTER-NAME\ShareName or \\IP-ADDRESS\ShareName. If browsing in File Explorer fails, direct network paths and mapped drives are often more reliable.