Windows Local Network Guide

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

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.

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

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
  1. Open Settings using Win + I.
  2. Go to Network & Internet.
  3. Select Wi-Fi or Ethernet, depending on your connection.
  4. Click the current network name.
  5. Under Network profile, select Private.
  1. Open Settings with Win + I.
  2. Go to Network & internet.
  3. Open Wi-Fi or Ethernet.
  4. Click your active network connection.
  5. 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.

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
  1. Open Control Panel.
  2. Go to Network and InternetNetwork and Sharing Center.
  3. Click Change advanced sharing settings.
  4. Expand Private.
  5. Turn on Network discovery.
  6. Turn on File and printer sharing.
  7. Click Save changes.
  1. Open Settings.
  2. Go to Network & internetAdvanced network settings.
  3. Open Advanced sharing settings.
  4. Under Private networks, enable Network discovery.
  5. Enable File and printer sharing.
  6. Make sure these settings are not enabled for Public networks unless you have a specific reason.
💡
Optional Setting Password-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.

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.

  1. Press Win + R, type sysdm.cpl, and press Enter.
  2. Open the Computer Name tab.
  3. Check the Full computer name. Each PC should have a unique name.
  4. Click Change if you want to rename the computer or change the workgroup.
  5. Use the same workgroup name on all PCs, for example WORKGROUP.
  6. 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.

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.

  1. Create a folder, for example C:\Shared or D:\LAN-Files.
  2. Right-click the folder and select Properties.
  3. Open the Sharing tab.
  4. Click Advanced Sharing.
  5. Enable Share this folder.
  6. Enter a clear share name, for example Shared or OfficeFiles.
  7. Click Permissions and define who can access the share.
  8. 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.

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.

Permission Type Where to Configure What It Controls
Share permissions Folder Properties → Sharing → Advanced Sharing → Permissions Access through the network share
NTFS permissions Folder Properties → Security 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

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

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

  1. Open File Explorer.
  2. Click Network in the left pane.
  3. Double-click the computer that hosts the shared folder.
  4. Open the shared folder.
  5. Enter the username and password if Windows asks for credentials.

Method 2: Use the Direct Network Path

  1. Press Win + R.
  2. 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

  1. Open File Explorer.
  2. Right-click This PC and select Map network drive.
  3. Choose a drive letter, for example Z:.
  4. Enter the folder path, for example \\OFFICE-PC\Shared.
  5. Enable Reconnect at sign-in if you want the drive to stay available after reboot.
  6. Click Finish.

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

  1. Press Win + R, type ncpa.cpl, and press Enter.
  2. Right-click your active Ethernet or Wi-Fi adapter and select Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  4. Select Use the following IP address.
  5. Enter an IP address in your network range, for example 192.168.1.25.
  6. Enter the subnet mask, usually 255.255.255.0.
  7. Enter the default gateway, usually your router address, such as 192.168.1.1.
  8. Enter DNS servers, for example your router address or another trusted DNS server.
  9. 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.

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.

  1. Open SettingsBluetooth & devicesPrinters & scanners in Windows 11, or SettingsDevicesPrinters & scanners in Windows 10.
  2. Select the printer you want to share.
  3. Open Printer properties.
  4. Go to the Sharing tab.
  5. Enable Share this printer.
  6. Enter a simple share name, for example HP-Laser.
  7. On another PC, add the printer from Printers & scanners or connect directly with \\COMPUTER-NAME\HP-Laser.

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.

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:

Allow File and Printer Sharing in Windows Defender Firewall

  1. Open Windows Security.
  2. Go to Firewall & network protection.
  3. Click Allow an app through firewall.
  4. Click Change settings.
  5. Find File and Printer Sharing.
  6. Allow it for Private networks.
  7. 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.

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.