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.
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 + X → device 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.11acorWi-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 + R→firewall.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 cmd → Run 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 offnetsh wlan start hostednetwork
pause
⚠️ Attention: If you see an error after entering the command"Failed to start hosted network", check the function supportHosted Networkyour adapter. To do this, enternetsh wlan show driversand 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:
- Open
Settings → Network & Internet → Mobile Hotspot. - In the field
Internet Connection Sharingselect the current connection (for example,EthernetorWi-Fi). - Click
"Change"and set the network name (SSID) and password (minimum 8 characters). - Turn on the slider
Allow use of my internet connection.
On macOS the algorithm is different:
- Open
System Preferences → Sharing. - Select
"Common Internet"from the left menu. - In the field
General ConnectionPlease provide the source (eg.Ethernet). - In the section
"For computers using"markWi-Fi. - Click
Wi-Fi Settingsand set the network name, channel (2.4 GHzfor better compatibility) and password. - 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:
- Open
Settings → Devices → Bluetooth & other devices. - Click
Add device→Wireless display or docking station. - Turn on
Wi-Fi Directon the second laptop (usually throughNetwork Control Panelor a special utility from the manufacturer, for example, Intel Wireless ProSet). - 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:
- Open
Finder→Go → AirDrop. - Turn on detection for
"All"orContacts only. - 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:
- Open
Control Panel → Network and Internet → Network and Sharing Center. - Go to
"Change adapter settings". - Find the wireless connection you created (e.g.
Local Area Connection* 2), right-click →Properties. - Select
Internet Protocol version 4 (TCP/IPv4)→Properties. - Install:
IP address:192.168.1.1(on the first laptop) and192.168.1.2(on the second),Subnet mask:255.255.255.0(on both).
To set up shared access to a folder:
- Right-click on the folder →
Properties → Access. - Click
Shareand select a user"All"(or create a new one). - Set permissions (
ReadingorReading and writing). - 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:
- Activate
File Sharing. - Add the folder to the list of shared resources.
- IN
UsersSelect an account with access rights. - Connect from the second laptop via
Finder → Go → Connect to Server(entersmb://192.168.1.1). - 🔹 Make sure both devices are connected to the same network (name
SSIDmust match). - 🔹 Turn off your firewall (
firewall.cpl) and antivirus software during diagnostics. - 🔹 Make sure that
IP addressesare on the same subnet (for example,192.168.1.x). - 🔹 Switch to range
5 GHz(if adapters support it). Windows this is done throughSettings → 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).
- 🔹 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 usefor manual connection:net use Z: \\192.168.1.1\SharedFolder /user:UserNamePassword - 📱 Suitable for transferring small files (up to 50 MB).
- 🔗 Speed: up to 3 Mbps (in
Bluetooth 4.0). - ⚡ Energy consumption: minimal.
⚠️ 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 laptopsSMB 1.0(VControl 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.
Problem 2: Slow file transfer speed.
Problem 3: Unable to connect to shared folder.
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
To connect:
- Turn on
Bluetoothon both laptops. - On the first laptop, send the file via
Send to → Bluetooth Device. - Accept the file on the second laptop.
Method 2: Ethernet cable (if Wi-Fi doesn't work)
- 🔌 Required
crossover cable(or regularEthernet+ 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 Firewallor add the game to the exceptions. - In the game settings, select
Local Area Network (LAN)instead ofInternet. - If the game does not see the second player, check that
IP addressesare 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.