Why connect laptops directly and when is it useful?
Situations where you need to transfer files between two laptops without internet or local network access arise more often than you think. For example, you're on a business trip with a colleague and urgently need to exchange large presentations—but you've forgotten your flash drives at home and your mobile internet connection is spotty. Or you're helping a friend set up Windows 11 on his new one Lenovo ThinkPad, but there is no Ethernet cable at hand, and the router is not configured yet.
Direct Wi-Fi connection between laptops solves these problems without any additional equipment. It works even where there is no network: on a plane, at the dacha, in the office during a move. The main thing is that both devices have Wi-Fi adapters (99% of modern laptops have them). In this article, we'll look at three working methods, their pros and cons, and setup details for different versions of Windows.
Method 1: Create a hotspot on one laptop
The most versatile method is to turn one laptop into virtual router, to which the second one will connect. This works on all versions of Windows starting from Windows 7, but in Windows 10/11 The process has been simplified. You won't need any third-party programs like Connectify or mHotspot — the built-in tools are enough.
Algorithm of actions:
- 🔧 Open
Settings → Network & Internet → Mobile Hotspoton the laptop that will distribute the network. - 📶 In the "Sharing" drop-down menu, select the connection through which the Internet is distributed (even if there is none, leave any active one, for example,
Ethernet). - 🔑 Ask network name (SSID) And password (minimum 8 characters, with numbers and letters).
- 🔄 Turn on the "Allow using my internet connection" switch and activate the mobile hotspot.
On the second laptop, connect to the newly created network as if it were a regular Wi-Fi network. After this, the devices will see each other in Networks (check in File Explorer → Network). If computers aren't showing up, check your sharing settings—more on that in the next section.
☑️ Check before connection
⚠️ Attention: If the laptop-router is used Windows 10 versions 1803 or later, the mobile hotspot may not launch due to Microsoft restrictions. In this case, use command line (the method is described below) or update the system.
Method 2: Wi-Fi Direct – direct connection without a router
Wi-Fi Direct — a technology that allows devices to connect directly, without an intermediary such as an access point. It's like Bluetooth, but with Wi-Fi speed (up to 250 Mbps under ideal conditions). The method is supported by most laptops with Wi-Fi adapters 802.11n/ac/ax, but may not work on older models (up to 2012 release).
How to set up:
- On the first laptop, open
Settings → Devices → Bluetooth & other devices. - Click "+ Add a device or Bluetooth" → "Other devices".
- On the second laptop, enable discovery: in the same menu, select "Get help connecting to this device."
- Wait for the first laptop to find the second one and confirm the connection (you may be asked to enter a PIN).
Once connected, the devices will appear in the list. Devices and printersTo transfer files, use the standard SMB protocol (through File Explorer → Network) or specialized programs like Feem or Send Anywhere.
| Parameter | Access point (hotspot) | Wi-Fi Direct |
|---|---|---|
| Connection speed | Up to 150 Mbps (depending on adapter) | Up to 250 Mbps (theoretical) |
| Support for older operating systems | Windows 7+ | Windows 8.1+ (limited) |
| Password requirement | Yes (WPA2-PSK) | Sometimes (PIN or confirmation) |
| Online visibility | Yes (as a separate device) | Limited (file sharing only) |
Method 3: Creating a local network via the command line (for experienced users)
If the first two methods did not work (for example, due to outdated hardware or driver conflict), you can manually create ad-hoc network through CMDThis method requires administrator rights and precise command entry, but it works even on Windows XP (if the adapter supports the mode IBSS).
Instructions for a laptop that will share the network:
- Run Command Prompt as Administrator (
Win + X → Command Prompt (Administrator)). - Enter the command to create the network:
netsh wlan set hostednetwork mode=allow ssid=MyAdHoc key=12345678 keyUsage=persistentHere
MyAdHoc— network name,12345678— password (change them!). - Activate the network:
netsh wlan start hostednetwork - Allow sharing: open
Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings, find your primary connection (eg.Ethernet), right-click → "Properties" → "Access" tab → check "Allow other network users..." and select the created connectionMyAdHoc.
On the second laptop, connect to the network MyAdHoc as with regular Wi-Fi. If the connection fails, check if your adapter supports the mode. hostednetwork command:
netsh wlan show drivers
Look for the line Hosted network support: yes.
⚠️ Attention: In Windows 11 teamnetsh wlan start hostednetworkmay return an errorFailed to start hosted networkThis is due to Microsoft security policies. The solution is to use a PowerShell script to bypass the restrictions or restore the system to its default state. Windows 10.
What to do if the netsh command doesn't work?
If after entering netsh wlan start hostednetwork The error "Failed to start hosted network" appears, try:
1. Update your Wi-Fi adapter driver to the latest version.
2. Roll back the driver to an older version (via Device Manager).
3. Use alternative utilities like Virtual Router Plus (but they require .NET Framework 3.5).
4. Check if the "WLAN Auto Configuration" service is disabled (services.msc → find the service and enable it).
Setting up shared access to files and folders
Establishing a connection is half the battle. For laptops to exchange data, you need to configure public access to folders. In modern versions of Windows, this is done via the protocol SMB, but it is often disabled by default for security reasons.
Step-by-step setup:
- 📁 On the laptop from which you will download files, open
Conductor, right-click on the folder → "Properties" → "Access" tab → "Share". - 👥 Select the "Everyone" user and set permissions (for example, "Read and Write").
- 🔐 In the same window, go to the "Security" tab → "Edit" → add the "Everyone" group and give it full rights.
- 🌐 On the second laptop, open
File Explorer → Network, find the name of the first computer and go to the shared folder.
If computers cannot see each other:
- Make sure the protocol is enabled on both devices.
SMB 1.0(VControl Panel → Programs → Turn Windows features on or off). - Make sure your network profile is set to "Private" (not "Public").
- Disable Windows Firewall or add an exception for file sharing.
Solving common problems
Even with proper setup, the connection may still malfunction. Here are common errors and their solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| Laptops can't see each other on the network. | The SMB protocol is disabled or the network profile is invalid. | Enable SMB 1.0 and set the profile to "Private" |
| The connection keeps dropping. | Saving Wi-Fi adapter energy | Disable "Allow the computer to turn off this device to save power" in the adapter properties. |
| Slow file transfer speed | The outdated 802.11g protocol is used. | Force the 802.11n/ac standard in the adapter settings. |
| Unable to connect to hotspot | IP address conflict | Configure static IPs manually (e.g. 192.168.137.1 and 192.168.137.2) |
Critical detail: If you use laptops with Wi-Fi adapters from different manufacturers (eg. Intel AX200 And Realtek RTL8821CE), connection speed can drop by up to 50% due to incompatible modulation protocols. The solution is to force the same standard (802.11n) in the driver settings.
Alternative Methods: When Wi-Fi Isn't Working
If none of the methods work, consider alternatives:
- 🔌 Ethernet cable (the most stable method, speed up to
1 Gbps). Use crossover cable for direct connection or a regular patch cord (modern adapters automatically detect the cable type). - 📡 Bluetooth (speed up to
3 Mbps, suitable for small files). Enable detection on both devices and use the "Send file" function in the context menu. - 💾 Local cloud service (For example, Syncthing or Resilio Sync). Works via direct TCP/IP, even without the Internet.
- 🔄 USB cable with Link function (special cables with electronic components that create a network via a USB port).
Messengers with the function are also suitable for temporary file transfer. LAN chat (For example, Telegram or VK Messenger). They automatically detect devices on the same network and allow you to send files without using the Internet.
⚠️ Caution: When using USB cable Link (For example, Belkin Easy Transfer) Disable automatic driver installation via Windows Update. Install software only from the manufacturer's official website; otherwise, the cable may be detected as a regular drive.
FAQ: Answers to Frequently Asked Questions
Is it possible to connect a laptop to a MacBook using these instructions?
Yes, but with nuances. On macOS To connect to a Windows hotspot, use the standard Wi-Fi menu. To share files, enable General access V System Preferences → Sharing and select the folder. On Windows, when connecting to a MacBook as an access point, you may need to disable MAC address filtering in the settings. macOS.
Why is file transfer speed lower than via cable?
Wi-Fi connection is always slower than Ethernet due to:
- Interference from other networks (especially in apartment buildings).
- Protocol limitations (even 802.11ac actually provides ~50% of the stated speed).
- Encryption overhead (WPA2/WPA3).
To speed things up:
- Switch to range
5 GHz(if adapters support it). - Use file archiving (ZIP/RAR) before transferring.
- Disable background downloads on both laptops.
How to transfer files between laptops without sharing folders?
Use specialized programs:
- Feem (cross-platform solution for Wi-Fi Direct).
- Send Anywhere (generation of temporary links for transmission).
- LocalSend (AirDrop analog for Windows/Linux/Android).
- Dukto R6 (transfer of files and text via local network).
These programs create a direct channel between devices without requiring SMB configuration or administrator rights.
Is it possible to play on a local network using this connection?
Technically yes, but with some caveats:
- 🎮 For older games (eg. Counter-Strike 1.6, Warcraft III) a Wi-Fi connection will be enough.
- 🐢 Modern shooters (Call of Duty, PUBG) will slow down due to high ping (from
50 ms). - 🔌 For a comfortable game, it is better to use Ethernet cable.
To reduce lags:
- Close all background programs on both laptops.
- In the game settings, select the minimum network requirements.
- Use range
5 GHzfor Wi-Fi.
Is it safe to use such a connection to transfer confidential data?
Direct Wi-Fi connection less safe, than cable, because:
- Possibility of intercepting traffic within the network coverage area (up to
100 meters). - Vulnerabilities in the protocol
WPS(if it is enabled). - Risk of connecting third devices (if the password is weak).
Precautions:
- Use a password that is at least
12 characterswith numbers and special characters. - Disconnect the network immediately after data transfer.
- For critical files use encryption (For example, VeraCrypt or 7-Zip with AES-256).