Connecting Two Laptops to a Local Area Network via Wi-Fi in Windows 10: 3 Working Methods

Creating a local network between two laptops via Wi-Fi without a router is a challenge that users face when they need to share files, collaborate on projects, or organize multiplayer games. Windows 10 This is implemented in several ways: from built-in tools like Mobile hotspot before manual tuning through command line or specialized utilities. However, each method has its own nuances, from speed limitations to compatibility issues with antivirus software.

In this article we will look at Three proven ways to establish a direct Wi-Fi connection, including step-by-step instructions with illustrations of key stages. We'll pay special attention to common errors (such as no network access after connecting) and how to troubleshoot them. You'll also learn how to optimize data transfer speed and ensure connection security—critical when working with confidential files or in public places.

Before you begin, make sure both laptops support Wi-Fi Direct or mode Ad-Hoc (most modern devices do). If one of the laptops is running Windows 11, the instructions will remain relevant with minor changes in the interface.

📊 Why do you need a local network between laptops?
File sharing
Collaboration
Multiplayer games
Software testing
Other

Method 1: Using a Mobile Hotspot (the easiest way)

Built-in function Mobile hotspot V Windows 10 allows you to turn one laptop into an access point that a second one can connect to. This method doesn't require any additional software and is suitable for most tasks, except for low-ping games due to the protocol's specifics. NAT.

To set up a connection:

  • 📋 Open Settings → Network & Internet → Mobile Hotspot on a laptop that will distribute Wi-Fi.
  • 🔄 In the drop-down menu Sharing select internet connection (if available) or leave No for an isolated network.
  • 🔐 Ask network name (SSID) And password (minimum 8 characters, with numbers and letters).
  • 🔄 Turn on the switch Allow use of my internet connection.

On the second laptop, connect to the created network using the standard Wi-Fi menu. Once connected, check the availability of devices: open File Explorer → NetworkIf the second laptop is not showing up, check the settings. network discovery (more on this below).

☑️ Check before connection

Completed: 0 / 4
⚠️ Attention: If an error appears on the second laptop "No internet access", but the local network works - this is normal. Function Mobile hotspot By default, it does not transmit an Internet connection without additional settings.

Method 2: Configuration via the command line (for advanced users)

This method is suitable if Mobile hotspot doesn't work or requires more flexible configuration (for example, for games). We will create Ad-Hoc network — temporary point-to-point connection without a router. Important: in Windows 10 support Ad-Hoc is limited, so we use a workaround through hostednetwork.

Run the following commands on main laptop (which will distribute the network):

netsh wlan set hostednetwork mode=allow ssid=MyLocalNet key=12345678 keyUsage=persistent

netsh wlan start hostednetwork

Where:

  • ssid=MyLocalNet — network name (replace with your own, without spaces).
  • key=12345678 — password (minimum 8 characters).

After executing the commands, go to Control Panel → Network and Sharing Center → Change adapter settingsA new connection will appear here. "Wireless Network Connection* X" (where X is a number). Right-click on it, select Properties → Access and allow other users to connect through this connection.

On the second laptop, connect to the network MyLocalNet (or your SSID name) via the standard Wi-Fi list. If the network isn't visible, refresh the list or restart your Wi-Fi adapter.

Problem Cause Solution
The network is not created (Failed to start hosted network) Wi-Fi driver does not support hostednetwork Update your adapter driver or use method 1/3
No access to files Network discovery is disabled Turn on in Settings → Network → Sharing options
Low transmission speed An outdated protocol is being used 802.11b/g Force install 802.11n/ac in the adapter settings

3. Method: Programs for creating a local network (alternative)

If built-in tools Windows 10 If these aren't suitable, try third-party utilities. They offer additional features, such as traffic encryption, speed monitoring, and a simple interface. Let's look at two proven programs:

  • 🔧 Connectify Hotspot — paid software with a trial period. Supports internet sharing, firewall configuration, and speed limiting for connected devices. Cons: the free version shuts down after 30 minutes.
  • 🌐 Virtual Router Plus — a free, open-source utility. It has a simple interface, but may conflict with some antivirus programs (for example, Kaspersky).

Instructions for Virtual Router Plus:

  1. Download the program from official website (check the file for viruses).
  2. Run as administrator.
  3. In the field Network Name (SSID) enter the network name in Password - password.
  4. IN Shared Connection select an active network connection (or None for an isolated network).
  5. Click Start Virtual Router.

On the second laptop, connect to the created network. Use standard tools to share files. Windows (For example, Shared folders) or programs like TeamViewer (for remote control).

⚠️ Attention: Free versions of programs may contain adware. Install them only from official sources and check the installers for additional components (e.g. McAfee WebAdvisor).

4. Setting up shared access to files and folders

After creating the network, you need to configure it public accessso that laptops can exchange data. By default Windows 10 Blocks access to folders for security reasons.

How to share a folder:

  1. Right-click on the folder → Properties → Access.
  2. Click Share and select a user All (or create a new one).
  3. Set permission level: Reading (view only) or Reading and writing.
  4. Go to the tab SecurityChange and add a user All with the same rights.

To view shared folders on the second laptop:

  • 🖥️ Open File Explorer → Network.
  • 🔍 If the devices are not displayed, enter in the address bar \\[IP address] (For example, \\192.168.137.1).
  • 🔑 When prompted for a login/password, use the account details from your main laptop.
How to find out the IP address of a laptop on a local network?

Open command prompt and type ipconfigFind the block Wireless LAN adapter - line IPv4 address contains the required value (for example, 192.168.137.1).

If access is still blocked, please check:

  • 🛡️ Settings firewall (allow me File and Printer (in exceptions).
  • 🔄 SSDP Discovery Service (must be running: services.msc → SSDPSRV).
  • 📋 Security policies (V gpedit.msc → Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options check Network Security: Authentication Level for LAN Manager Clients — install Send LM and NTLM).

5. Speed ​​optimization and lag elimination

The data transfer speed in a local Wi-Fi network depends on several factors: the standard Wi-Fi (802.11n/ac/ax), distance between devices, interference from other networks. Average indicators:

  • 📶 802.11n (2.4 GHz): up to 150 Mbps (in reality – 50-70 Mbps).
  • 📶 802.11ac (5 GHz): up to 867 Mbps (in reality – 200-400 Mbps).
  • 📶 802.11ax (Wi-Fi 6): Up to 2400 Mbps (requires support from both adapters).

How to speed up your connection:

  1. Use the 5 GHz band (if the adapters support it). To do this, go to the settings hostednetwork add parameter channel=36 (For example, netsh wlan set hostednetwork mode=allow ssid=MyNet key=pass123 channel=36).
  2. Disable Wi-Fi power saving: Device Manager → Network Adapters → [your adapter] → Properties → Power Management - uncheck Allow the computer to turn off this device to save power.
  3. Change the channel width at 40 MHz (in the adapter settings or via netsh).

For gaming, reduce latency (ping) with:

  • 🎮 Traffic prioritization in the router settings (if the network was created through it).
  • 🔧 Disabling background activity (updates, cloud synchronization).
  • 📡 Using a cable connection (if possible) - Wi-Fi lags are inevitable due to interference.
⚠️ Attention: The 5 GHz band has poor signal penetration through walls. If your laptops are in different rooms, stick to the 2.4 GHz band or use a signal extender.

6. Common mistakes and their solutions

Even with proper setup, problems can arise. Let's look at the most common ones:

Error Possible cause Solution
"Unable to connect to the network" Incorrect password or incompatible security settings Check your password, change the encryption type to WPA2-PSK (in settings hostednetwork)
The network is visible, but there is no access to files. Blocked by firewall or antivirus Add an exception for File and Printer In the firewall, temporarily disable the antivirus
Low speed (less than 1 Mbps) Automatic channel width limitation Manually set the channel and width in the adapter settings (for example, channel 6, width 20 MHz for 2.4 GHz)
IP conflict Both laptops are trying to use the same IP Assign static IPs manually (eg. 192.168.1.1 And 192.168.1.2)

If the problem persists, check:

  • 🔄 Wi-Fi drivers (update via device Manager or the manufacturer's website).
  • 📋 Power settings (turn off power saving mode for your Wi-Fi adapter).
  • 🛠️ Integrity of system files (do sfc /scannow in the command line as administrator).

7. Local Wi-Fi network security

Local area networks between laptops are vulnerable to data interception, especially in public places. Key risks:

  • 🕵️ Traffic sniffing — an attacker can intercept transmitted files.
  • 🔓 Connecting third parties - if the network is not password protected.
  • 📂 Unauthorized access to files - with weak public access settings.

How to secure your connection:

  1. Use a complex password (minimum 12 characters, with capital letters, numbers and special characters).
  2. Turn off sharing for all folders, except for those necessary.
  3. Enable encryption:
    • For hostednetwork: add parameter keyUsage=persistent (already in our team above).
    • For Mobile hotspot: use WPA2-PSK (installed by default).
  • Set up your firewall:
    • Allow only the necessary ports (eg. 445 for file sharing).
    • Block incoming connections by default.

    For maximum safety:

    • 🔐 Use VPN (For example, WireGuard) over the local network.
    • 📁 Encrypt sensitive files before transferring them (for example, using 7-Zip or VeraCrypt).
    • 🛡️ Turn off the network after use (using the command netsh wlan stop hostednetwork).
    ⚠️ Attention: Never use unencrypted local networks in public places (cafes, airports). Attackers can connect to your access point and intercept your traffic.

    FAQ: Frequently Asked Questions

    Is it possible to create a local network between a Windows 10 laptop and a MacBook?

    Yes, but with nuances. On Windows Set up Wi-Fi distribution using one of the methods described. MacBook Connect to the network through the standard Wi-Fi menu. Use the protocol to exchange files. SMB:

    1. On Mac open System Preferences → Sharing and turn it on File sharing.
    2. IN Parameters select the folder and set permissions for the user Everyone.
    3. On Windows enter in Explorer \\[MacBook IP address] (For example, \\192.168.1.2).

    If the connection fails, check the firewall settings on both devices.

    Why is file transfer speed lower than via cable?

    Wi-Fi connection is always slower than cable connection due to:

    • Interference from other networks (especially in the 2.4 GHz range).
    • Protocol limitations (For example, 802.11n theoretically it gives 300 Mbit/s, but in reality it’s 100-150 Mbit/s).
    • Overhead costs for encryption and connection management.

    To get the speed closer to maximum:

    • Use range 5 GHz (if adapters support it).
    • Reduce the distance between devices.
    • Disable other Wi-Fi networks within range.
    How to transfer files without setting up a shared folder?

    There are several alternative methods:

    • 📎 HTTP server: On one laptop, run the server (for example, via python -m http.server 8000 in the file folder), on the second one, open it in the browser http://[IP address]:8000.
    • 📤 FTP: Use programs FileZilla Server (on the distributing laptop) and FileZilla Client (on the receiving end).
    • 🔗 Cloud services: Upload files to Google Drive/Dropbox and share the link (suitable for small files).

    For large files (videos, disk images), it's better to set up a shared folder—it's faster and more reliable.

    Is it possible to play online games (for example, Minecraft or CS:GO) through such a network?

    Technically yes, but with some caveats:

    • 🎮 Minecraft: Supports local area networks via IP. Run the world on one laptop, and connect to the second one via Direct connection (specifying the IP of the first laptop).
    • 🎮 CS:GO: Requires server creation or use Steam roomsFor direct connection, please set up Hamachi or ZeroTier.
    • 🔄 Ping problemsWi-Fi latency will be higher than cable latency (20-30 ms). This is critical for competitive gaming.

    For best experience use:

    • Programs like Hamachi (creates a virtual network with lower lags).
    • Cable connection (via Ethernet or USB-LAN adapter).
    How can I make the network automatically connect when I start my laptops?

    To start automatically hostednetwork:

    1. Create a file start_hotspot.bat with the following contents:
      @echo off
      

      netsh wlan start hostednetwork

      exit

    2. Place the file in the folder C:\Users\[Your_name]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.
    3. To automatically connect the second laptop, save the network in its Wi-Fi settings (check mark Connect automatically).

    For Mobile hotspot Automatic start is not provided, but can be used Task Scheduler:

    1. Open Task Scheduler → Create Task.
    2. Set the trigger When you log in.
    3. In the action, specify Launching the program and select the file start_hotspot.bat.