Connecting two laptops wirelessly is a challenge faced by both novice users and experienced IT professionals. Whether you need to urgently transfer a large file without a flash drive, collaborate on a project, or simply share internet from one device to another, there are countless applications. However, many people mistakenly believe that this requires a router or cable. In fact, modern operating systems allow you to create a direct connection. Wi-Fi connection between laptops without additional equipment.
In this article we will look at three main methods: creation virtual access point (if one laptop distributes the Internet), using technology Wi-Fi Direct for direct connection and setup local network via an existing router. Each method has its own nuances, from data transfer speed to compatibility with different operating systems. We'll describe each step in detail, point out possible errors, and provide troubleshooting recommendations. Finally, you'll find a comparison table of methods and answers to frequently asked questions.
1. Connecting via a virtual access point (Hotspot)
The most versatile way is to turn one of your laptops into Wi-Fi hotspot, to which the second one will connect. This method is suitable if you need to not only connect devices but also share the internet (for example, from a laptop connected to the network via cable or mobile 4G/5G). The main advantage is the ease of setup and support by most operating systems.
On Windows 10/11 This is done using built-in tools without any third-party programs. macOS you will need to use the terminal or special utilities like Create HotspotOn . Linux (For example, Ubuntu or Fedora) will need to be configured hostapd And dnsmasq — It’s more complicated, but we’ll give you simplified instructions.
- 🖥️ Windows: Use the command
netsh wlan set hostednetworkor the "Mobile hotspot" menu in the settings. - 🍎 macOS: Enable "Internet Sharing" in the system settings (Sharing section).
- 🐧 Linux: Install packages
hostapdAnddnsmasq, then configure the configuration files.
The data transfer speed in this mode depends on the Wi-Fi standard of your adapters. For example, if both laptops support Wi-Fi 6 (802.11ax), the theoretical speed can reach 9.6 Gbps (in practice - 1-2 Gbit/s). For Wi-Fi 5 (802.11ac) The maximum speed will be around 866 Mbps. However, the actual speed will be lower due to interference and protocol limitations.
⚠️ Note: On some laptops with Intel or Realtek Wi-Fi adapters may have their virtual hotspot functionality blocked by the driver. In this case, updating the drivers or using third-party utilities like Connectify or MyPublicWiFi.
2. Direct connection via Wi-Fi Direct
Wi-Fi Direct — is a technology that allows devices to connect directly, without the intermediary of a router. It is similar Bluetooth, but operates on Wi-Fi, providing higher data transfer speeds (up to 250 Mbps in real-world conditions). This method is ideal for file transfers, video streaming, or gaming over a local network.
The main condition is that both laptops must support Wi-Fi DirectMost modern devices (released after 2015) are equipped with this feature, but on older models or budget laptops with adapters Realtek RTL8188EE or Broadcom BCM43142 It may not be supported. You can check for support in the Device Manager or using the command:
netsh wlan show drivers | find "Wi-Fi Direct"
- ⚡ Pros: No dependence on a router, high speed, low power consumption.
- ⚠️ Cons: Not all adapters support this mode, and it can be difficult to configure on Linux.
- 🔧 Alternative: If Wi-Fi Direct doesn't work, use Bluetooth (but the speed will be up to 24 Mbps).
On Windows turn on Wi-Fi Direct You can do this through "Settings" → "Devices" → "Bluetooth & other devices". macOS the function is called AirDrop (but only works between Apple devices). Linux manual configuration will be required via wpa_supplicant.
Check Wi-Fi Direct support on both laptops
Update your Wi-Fi adapter drivers
Disable your firewall temporarily (it may block the connection)
Make sure the distance between devices is no more than 10 meters-->
3. Connection via a local network (if there is a router)
If both laptops are connected to the same router, they can be combined into local network For file sharing, printer sharing, or online gaming. This method is the most stable, as it doesn't depend on adapter performance and is supported out of the box by all operating systems.
Main steps:
- Make sure both devices are connected to the same Wi-Fi network.
- Set up folder sharing (on Windows via "Folder Options" → "Access").
- Use
IP addressa second laptop to connect to (for example,\\192.168.1.100in Windows Explorer).
For convenience, you can assign static addresses to laptops. IP addresses in the router settings (DHCP reservation). This will eliminate the need to check the current address each time. The data exchange speed in a local network is limited only by the capabilities of the router and network cards. For example, on a router with Wi-Fi 6 and gigabit ports, the actual file transfer speed can reach 500–700 Mbps.
⚠️ Attention: If your router uses client isolation (Client Isolation or AP Isolation), devices on the same network won't see each other. This feature is often enabled on public networks (hotels, cafes). You can disable it in the router control panel, usually in the Wireless → Advanced.
| Method | Speed | Difficulty of setup | Need a router? | OS support |
|---|---|---|---|---|
| Virtual access point | 100–866 Mbps | Low | No | Windows, macOS, Linux |
| Wi-Fi Direct | up to 250 Mbps | Average | No | Windows, macOS (limited), Linux (manual setup) |
| Local network via router | up to 1 Gbit/s* | Low | Yes | All OS |
* Depends on the router model and Wi-Fi standard.
4. Step-by-step instructions for Windows (access point)
Let's look at the most popular scenario - distributing Wi-Fi from a laptop to Windows 10/11This method works even if you don't have a physical router.
Step 1: Checking hostednetwork support
Open Command Prompt as Administrator and enter:
netsh wlan show drivers
Find the line Hosted network supportIf it says there Yes, we can continue. If No - update the adapter driver on the manufacturer's website (Intel, Qualcomm Atheros, Realtek and others).
Step 2: Creating a Network
In the same command line, run:
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=12345678 keyUsage=persistent
Where:
MyHotspot— the name of your network (can be changed).12345678— password (minimum 8 characters).
Step 3. Starting the distribution
netsh wlan start hostednetwork
If a message appears The hosted network is launched, everything went well. Now connect the second laptop to the network. MyHotspot with a password 12345678.
Step 4: Enabling Internet Sharing
If the first laptop is connected to the Internet (e.g. via Ethernet), open "Control Panel" → "Network and Internet" → "Network and Sharing Center" → "Change adapter settings." Find your primary connection (e.g. Ethernet), right-click → "Properties" → "Access" tab. Check the box Allow other network users to share your Internet connection and select the created network (Local Area Connection* X).
5. Setting up Wi-Fi Direct on Windows and macOS
On Windows 10/11 turn on Wi-Fi Direct You can do this via parameters or the command line. Here are the step-by-step instructions:
For Windows:
- Open Settings → Devices → Bluetooth & other devices.
- Click "+ Add Bluetooth or other device" → "Wireless display or dock".
- On the second laptop, turn on the mode Wi-Fi Direct (usually in the adapter settings or through
netsh wlan connect).
For macOS:
Apple uses its own technology AirDrop, which only works between devices AppleTo connect with Windows- a laptop will require:
- Open "Finder" → "Go" → "AirDrop".
- Make sure that the Wi-Fi mode is enabled in the settings.
Detection for all. - On Windows-use third-party utilities like Feem or Snapdrop (work through a browser).
On Linux setting Wi-Fi Direct requires manual editing of configuration files. For example, for Ubuntu:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add the line:
p2p_disabled=0
Then restart the service:
sudo systemctl restart wpa_supplicant
What to do if Wi-Fi Direct is not working?
If the devices cannot see each other, check the following:
1. Drivers: Update your Wi-Fi adapter driver to the latest version (especially relevant for adapters Realtek).
2. Wi-Fi channel: In the manual settings of the router (if you have one), set a fixed channel (for example, 6 or 11) - this will help avoid interference.
3. Firewall: Temporarily disable Windows Firewall or add an exception for wlanapi.dll.
4. Power saving mode: In Power settings, disable the "Allow the computer to turn off this device to save power" option for the Wi-Fi adapter.
6. Sharing files between laptops
Once the connection is established, all that remains is to configure data exchange. Let's look at three methods:
- 📁 Shared Folders (SMB):
- On the first laptop, right-click on the folder → "Properties" → "Access" → "Share".
- On the second laptop, enter in Explorer
IP address of the first laptop(For example,\\192.168.137.1).
On Windows You can launch the built-in FTP server through "Control Panel" → "Programs and Features" → "Turn Windows features on or off" → "IIS Services" → "FTP Server". macOS/Linux will do FileZilla Server.
Upload files to Google Drive, Dropbox or Yandex Disk, then download it to the second laptop. Suitable for small files (up to 2–5 GB).
For transferring large files (video, disk images) it is better to use shared folders via SMB This is the fastest method on a local network. Copy speed depends on the connection type:
- Wi-Fi 5 (802.11ac): 30–80 MB/s (240–640 Mbps).
- Wi-Fi 6 (802.11ax): 50–120 MB/s (400–960 Mbps).
- Gigabit Ethernet: 80–110 MB/s (if connected via cable).
- Creation virtual access point (if one laptop distributes the Internet).
- Usage Wi-Fi Direct for direct connection.
- Setting up ad-hoc networks (obsolete method, but works on older OS).
- Local network via router (Wi-Fi 6) — up to 1 Gbit/s.
- Virtual access point (Wi-Fi 5/6) — 300–866 Mbps.
- Wi-Fi Direct — up to 250 Mbit/s.
- Bluetooth — up to 24 Mbps (only for small files).
⚠️ Important: When transferring files over Wi-Fi, avoid using the network for other tasks (such as online gaming or video streaming) at the same time. This can reduce data transfer speeds by 2-3 times.
7. Troubleshooting
If the laptops cannot see each other or the connection keeps dropping, check the following:
| Problem | Possible cause | Solution |
|---|---|---|
| Unable to start hostednetwork | The driver does not support the mode | Update the driver from the manufacturer's website or use Connectify |
| Slow file transfer speed | Wi-Fi channel interference | Change the channel in your router settings (for example, from 6 to 11) |
| The connection is broken after 5-10 minutes | Power saving mode | Disable "Allow the computer to turn off this device to save power" in Device Manager. |
| Shared folders are not visible | A firewall or antivirus is blocking SMB. | Add an exception for ports 137-139, 445 or disable the firewall temporarily |
If the problem is not resolved, please check Windows event logs (Event Viewer menu → Windows Logs → System) for errors related to WLAN-AutoConfig or Microsoft-Windows-NetworkProfile.
FAQ: Frequently Asked Questions
Is it possible to connect a laptop to a laptop via Wi-Fi without a router?
Yes, any of the three methods described in the article will work for this:
The most reliable option is Wi-Fi Direct, if both adapters support it.
What is the fastest method for transferring files?
In terms of speed, the methods are distributed as follows (from fast to slow):
For maximum speed use Wi-Fi 6 or connect laptops via Ethernet-cable (if there is a port).
Why does the second laptop connect to the access point, but the internet doesn't work?
This is a typical problem when distributing the Internet via hostednetworkCauses and solutions:
- Public access is not allowed: Check your sharing settings in Network and Sharing Center (see Section 4).
- IP conflict: On the second laptop, manually set the IP from a different subnet (for example,
192.168.137.100with a mask255.255.255.0). - Blocked by antivirus: Add an exception for
svchost.exe(the process responsible for the network).
Is it possible to connect a laptop to a PC or smartphone this way?
Yes, all the methods described work not only between laptops, but also for connections:
- Laptop ↔ desktop PC (if your PC has a Wi-Fi adapter).
- Laptop ↔ smartphone/tablet (on Android or iOS).
- Laptop ↔ Smart TV or set-top box (for example, for screen sharing).
For smartphones it is easiest to use Wi-Fi Direct or connecting to a virtual access point.
How to protect your connection from outsiders?
When creating a virtual access point or setting up Wi-Fi Direct follow these guidelines:
- Use complex password (at least 12 characters, with numbers and special characters).
- Turn it off
WPS(vulnerable rapid setup protocol). - Turn on WPA3 encryption (if supported). On Windows this is done through
netsh wlan set hostednetwork mode=allow ssid=MyNet key=Password keyUsage=persistent(default is usedWPA2-PSK). - Limit the number of connected devices (in the access point settings).
For added security, disable folder sharing when you're finished.