How to Connect Two Laptops to a Wi-Fi Network: 5 Proven Methods

Connecting two laptops to a local network via Wi-Fi — a challenge faced by both novice users and experienced IT professionals. The possibilities of such a network are varied: from file transfer without flash drives to collaboration in games or programs that require network interaction. However, many people mistakenly believe that a router or cable is essential for this. In fact, modern operating systems allow you to create a direct connection between devices with just a few clicks.

The main advantage of a wireless connection is mobility. You don't have to look for an Ethernet cable or configure complex router settings. Two laptops with Wi-Fi adapters (and they are in every modern device) and 5-10 minutes of time. In this article, we will analyze all the current methods: from the classic ad-hoc networks before the regime access points, and we will also consider the nuances for Windows 10/11 And macOSWe'll pay special attention to common errors and how to fix them—this will save you hours searching for solutions.

If you plan to use the connection for gaming (eg. Minecraft or Counter-Strike), transferring large files, or even remotely controlling one laptop from another, it is important to choose the right method. For example, ad-hoc network suitable for temporary data transfer, and the mode Wi-Fi Direct will provide a more stable connection. It is equally critical to configure it correctly. IP addresses - this will eliminate problems with access to shared folders or network resources.

📊 Why do you need to connect two laptops?
File transfer
Cooperative games
Remote control
Network testing
Other

1. Preparing laptops for connection

Before setting up the network, make sure both devices meet the minimum requirements. First, check for Wi-Fi adapter - without it, air connection is impossible. Windows This can be done through device Manager (keys Win + Xdevice Manager → section Network adapters). Look for lines mentioning Wireless, Wi-Fi or 802.11.

Secondly, update your network adapter drivers. Outdated versions often cause network setup failures. Windows You can update the driver through the same device Manager (right click on the adapter → Update driver). For macOS updates are installed through System Settings → Software Update.

The third important point is Wi-Fi standards compatibilityIf one laptop only supports 802.11n (maximum speed 300 Mbps), and the second one is 802.11ac (up to 1 Gbps), the network will operate at the speed of a slower device. This is critical for transferring large files or streaming video.

  • 🔧 Check your drivers: Outdated versions may block the creation of ad-hoc networks.
  • 📶 Wi-Fi standard: For speeds above 300 Mbps, both adapters must support 802.11ac or Wi-Fi 6.
  • 🔋 Battery charge: When the battery is low (<20%) Windows can automatically turn off the adapter to save power.
  • 🛡️ Antivirus/Firewall: Temporarily disabling the firewall (Win + Rfirewall.cpl) will help avoid connection blocking.
⚠️ Attention: On laptops with Intel adapters of the series AX200/AX210 You may need to disable the feature Wi-Fi Sense in the network settings. It automatically connects the device to "familiar" networks, preventing a direct connection.

2. Method 1: Ad-hoc network (Windows)

Ad-hoc network (from lat. ad hoc — "for this case") is a temporary connection between two devices without a router. Windows 10/11 It can be created via the command line or the graphical interface. We'll look at both options.

To create through Command line (Win + R → enter cmdRun as administrator), run the command:

netsh wlan set hostednetwork mode=allow ssid="NetworkName" key="Password123" keyUsage=persistent

Where:

  • NetworkName - an arbitrary name (for example, LaptopNet),
  • Password123 — a password of at least 8 characters (required to include numbers/letters).

Once created, start the network with the command:

netsh wlan start hostednetwork

To disable use:

netsh wlan stop hostednetwork

To avoid entering commands every time, save them in .bat-file. For example, create a text document with the extension .bat and the lines:

@echo off

netsh wlan start hostednetwork

pause

⚠️ Attention: If you see an error after entering the command "Failed to start hosted network", check the function support Hosted Network your adapter. To do this, enter netsh wlan show drivers and find the line "Hosted Network Support: Yes". If there "No", update the driver or use another method.

Update Wi-Fi adapter driver|Disable VPN/proxy|Check for Hosted Network support|Run command prompt as administrator-->

3. Method 2: Access Point Mode (Windows/macOS)

If an ad-hoc network is not suitable (for example, due to an outdated adapter), an alternative is to turn one laptop into a access pointThis method is universal and works even on devices without support Hosted Network.

IN Windows 10/11 this is done through the parameter Mobile Hotspot:

  1. Open Settings → Network & Internet → Mobile Hotspot.
  2. In the field Internet Connection Sharing select the current connection (for example, Ethernet or Wi-Fi).
  3. Click "Change" and set the network name (SSID) and password (minimum 8 characters).
  4. Turn on the slider Allow use of my internet connection.

On macOS the algorithm is different:

  1. Open System Preferences → Sharing.
  2. Select "Common Internet" from the left menu.
  3. In the field General Connection Please provide the source (eg. Ethernet).
  4. In the section "For computers using" mark Wi-Fi.
  5. Click Wi-Fi Settings and set the network name, channel (2.4 GHz for better compatibility) and password.
  6. Activate sharing by pressing the button "Turn on".

The advantage of this method is its simplicity and stability. However, keep in mind that the laptop hotspot will drain its battery faster than usual. To save power, plug it into a power outlet.

Parameter Windows (Mobile Hotspot) macOS (Internet Sharing)
Max. number of connections up to 8 devices up to 10 devices
5 GHz support Yes (if the adapter supports it) Yes (manually configurable)
Auto power off After 5 minutes of no activity After 10 minutes of no activity
Admin rights required Yes Yes

4. Method 3: Wi-Fi Direct (universal method)

Wi-Fi Direct — a technology that allows devices to connect directly, without the need for a router. It is supported by most modern laptops and provides high data transfer rates (up to 250 Mbps in standard 802.11n).

IN Windows the function is called "Wi-Fi Direct" or "Wireless Display" (if used for screencasting). To activate it:

  1. Open Settings → Devices → Bluetooth & other devices.
  2. Click Add deviceWireless display or docking station.
  3. Turn on Wi-Fi Direct on the second laptop (usually through Network Control Panel or a special utility from the manufacturer, for example, Intel Wireless ProSet).
  4. Select the second laptop from the list of available devices and confirm the connection.

On macOS the technology is implemented through AirDrop (for file transfer) or Screen Mirroring (for screen sharing). To activate:

  1. Open FinderGo → AirDrop.
  2. Turn on detection for "All" or Contacts only.
  3. On the second laptop, follow the same steps - the devices will detect each other automatically.

Wi-Fi Direct consumes 30–40% less energy than access point mode, since it does not require constant signal retransmission. This makes it an ideal choice for transferring files between battery-powered laptops.

How to enable Wi-Fi Direct on laptops with Realtek adapters

1. Download the utility Realtek Wireless LAN Utility from the official website.

2. Launch it and go to the tab Wi-Fi Direct.

3. Activate the mode P2P (Peer-to-Peer) and wait for the second device to be detected.

4. Confirm the connection on both laptops.

5. Configuring IP addresses and shared folders

After establishing a connection between laptops, you need to configure IP addresses And public access to files. Without this, you won't be able to transfer data or use the programs' network features.

To manually configure IP in Windows:

  1. Open Control Panel → Network and Internet → Network and Sharing Center.
  2. Go to "Change adapter settings".
  3. Find the wireless connection you created (e.g. Local Area Connection* 2), right-click → Properties.
  4. Select Internet Protocol version 4 (TCP/IPv4)Properties.
  5. Install:
    • IP address: 192.168.1.1 (on the first laptop) and 192.168.1.2 (on the second),
    • Subnet mask: 255.255.255.0 (on both).

To set up shared access to 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 permissions (Reading or Reading and writing).
  4. Confirm the changes and remember the network path (eg. \\192.168.1.1\PublicFolder).

On macOS Setting up public access is done through System Preferences → Sharing:

  1. Activate File Sharing.
  2. Add the folder to the list of shared resources.
  3. IN Users Select an account with access rights.
  4. Connect from the second laptop via Finder → Go → Connect to Server (enter smb://192.168.1.1).
  5. ⚠️ Attention: If you connect to a shared folder in Windows an error appears "Network path not found", check that the protocol is enabled on both laptops SMB 1.0 (V Control Panel → Programs and Features → Turn Windows features on or off). IN Windows 11 By default it is disabled for security reasons, but for a local network it can be temporarily enabled.

    6. Solving typical problems

    Even with proper settings, your connection may be unstable. Let's look at the most common errors and how to fix them.

    Problem 1: The laptops don't see each other on the network.

    • 🔹 Make sure both devices are connected to the same network (name SSID must match).
    • 🔹 Turn off your firewall (firewall.cpl) and antivirus software during diagnostics.
    • 🔹 Make sure that IP addresses are on the same subnet (for example, 192.168.1.x).

    Problem 2: Slow file transfer speed.

    • 🔹 Switch to range 5 GHz (if adapters support it). Windows this is done through Settings → Network → Wi-Fi → Hardware Properties.
    • 🔹 Reduce the distance between laptops or remove obstacles (walls, metal objects).
    • 🔹 Turn off other devices connected to the network (they may cause interference).

    Problem 3: Unable to connect to shared folder.

    • 🔹 Check that the target laptop is enabled File and Printer Sharing (Control Panel → Network Settings).
    • 🔹 Make sure the username and password on both laptops match (or use guest access).
    • 🔹 In Windows run the command net use for manual connection:
      net use Z: \\192.168.1.1\SharedFolder /user:UserNamePassword

    If the problem persists, try resetting your network settings to factory defaults:

    netsh int ip reset
    

    netsh winsock reset

    After executing the commands, restart both laptops.

    7. Alternative connection methods

    If none of the above methods work, consider alternative options. They are less versatile, but can be lifesaving in emergency situations.

    Method 1: Bluetooth

    • 📱 Suitable for transferring small files (up to 50 MB).
    • 🔗 Speed: up to 3 Mbps (in Bluetooth 4.0).
    • ⚡ Energy consumption: minimal.

To connect:

  1. Turn on Bluetooth on both laptops.
  2. On the first laptop, send the file via Send to → Bluetooth Device.
  3. Accept the file on the second laptop.

Method 2: Ethernet cable (if Wi-Fi doesn't work)

  • 🔌 Required crossover cable (or regular Ethernet + adapter for modern laptops without a port).
  • 🚀 Speed: up to 1 Gbps (in Gigabit Ethernet).
  • ⚠️ Inconvenience: physical connection.

Method 3: Cloud services (for file transfer)

  • ☁️ Suitable for large files (up to 2 TB in Google Drive).
  • 🔒 Security: Data is encrypted during transmission.
  • ⏳ Speed ​​depends on your internet connection.

Examples of services: Google Drive, Dropbox, Yandex DiskTo synchronize folders in real time, use Resilio Sync or Syncthing.

⚠️ Attention: When using cloud services to transfer sensitive data (such as documents or passwords), enable two-factor authentication on your account. This will protect your files even if an attacker gains access to the download link.

FAQ: Frequently Asked Questions

Is it possible to connect a laptop to Windows And macOS into one network?

Yes, but there are some nuances. It's better to use access point mode (on macOS) or Wi-Fi DirectWhen setting up IP addresses, avoid conflicts: for example, assign 192.168.1.1 For Windows And 192.168.1.2 For macOSTo share folders on macOS may need to be enabled SMB-protocol in System Preferences → Sharing → Options.

Why is file transfer speed via Wi-Fi lower than via cable?

Wireless connections are subject to interference (from other networks, microwaves, Bluetooth devices). Furthermore, the actual speed Wi-Fi Typically 2-3 times lower than theoretical due to the overhead of encryption and packet relaying. For maximum speed:

  • Use range 5 GHz (if adapters support it).
  • Reduce the distance between laptops to 1–2 meters.
  • Disconnect other devices connected to the network.

How to transfer files between laptops without setting up a network?

If you need to transfer files one-time, the easiest way is to use:

  • Local chat: Telegram or WhatsApp in a local network (without the Internet).
  • Specialized programs: LocalSend (analogue AirDrop For Windows/Android/macOS), Snapdrop (works via browser).
  • QR code: Generate a QR code for a file using QR Code Generator and scan it with the second laptop.

Is it possible to play online games through such a connection?

Yes, but with reservations. For games like Minecraft or Terraria (with LAN support) an ad-hoc network is sufficient. For more demanding games (CS:GO, Dota 2) it is better to use access point mode or Ethernet cable - they provide less ping. Important:

  • On both laptops, turn it off. Windows Firewall or add the game to the exceptions.
  • In the game settings, select Local Area Network (LAN) instead of Internet.
  • If the game does not see the second player, check that IP addresses are located on the same subnet.

How to protect your connection from unauthorized connections?

By default, ad-hoc networks and access points are password protected, but for additional security:

  • Use a complex password (at least 12 characters with numbers and special characters).
  • Disable it in the adapter settings. WPS (vulnerable to hacking).
  • Limit the number of connected devices (in Windows this is done through Settings → Mobile Hotspot → Change).
  • Please turn off the network after use to avoid unauthorized access.