Many users are familiar with the situation of urgently needing to transfer large files or launch a local game without a router at hand. In such moments, technology that allows create a Wi-Fi network between laptops Directly, bypassing the traditional infrastructure. This method, often called ad-hoc or computer-to-computer, turns one laptop into a makeshift router, ensuring a stable connection.
The main advantage of this solution is its autonomy. You don't need additional equipment or access to the global internet, as data is transmitted locally over the air. Modern operating systems, such as Windows 10 And Windows 11, have built-in tools to implement this task, making the process accessible even for inexperienced users.
The data transfer rate in such a configuration is limited only by the capabilities Wi-Fi adapters and the distance between devices. Unlike Bluetooth, wireless LAN provides significantly higher throughput, which is critical when working with video files or data backups. Let's look at how to properly set up such a connection.
Technological features of direct connection
Before setting up, it's important to understand that classic Wi-Fi operation requires an access point (router) to which clients connect. If there's no router, the classic mode is used. Ad-hoc (from the Latin ad hoc — "for this purpose"). In this topology, each device can communicate directly with another, forming a decentralized network.
However, in modern versions of Windows, Microsoft has shifted its focus to the "Mobile Hotspot" feature. While these are technically slightly different standards, for the end user, the result is identical: one laptop broadcasts a signal, and the other connects to it like a regular router. The key point is that the adapter supports the virtual access point mode., which is relevant for the vast majority of devices released over the past 10 years.
It's important to consider the physical limitations of this connection method. The range typically doesn't exceed 10-15 meters indoors, and walls and metal structures can significantly weaken the signal. Furthermore, active Wi-Fi distribution significantly increases power consumption, so when running on battery power, the laptop/server will drain faster than usual.
- 📡 Ad-hoc mode allows you to create temporary networks without a central access point.
- 🔋 The power consumption of the host laptop increases by 15-20% during distribution.
- 🛡️ The direct connection is secured with WPA2 or WPA3 encryption protocols.
- 💾 Transfer speed depends on the Wi-Fi standard (802.11n/ac/ax) of both adapters.
It's important to note that when using built-in Windows tools, you're essentially creating a virtual adapter. The system emulates a hardware router using software. This means that any issues with the wireless card drivers can lead to connection instability, so driver relevance plays a decisive role.
Preparing equipment and drivers
Successfully establishing a connection between two laptops is impossible without first checking the hardware. The first step is to ensure that the Wi-Fi modules on both devices are working properly. Unlike desktop PCs, where a module may be missing, it's standard on laptops, but can be disabled in the BIOS or with a physical switch.
The next critical step is checking the drivers. Even if the device is detected by the system, it may be operating in basic mode, which does not support network hosting. To check, open device Manager and find the "Network Adapters" section. If there's an exclamation point next to your adapter's name (often containing the words "Wireless," "Wi-Fi," or "802.11"), driver installation is required.
It's also recommended to check that Airplane Mode isn't enabled. Users sometimes forget that this mode blocks the ability to create a network, even if the Wi-Fi sliders appear active. Make sure the wireless indicator is lit on both laptops.
⚠️ Attention: Antivirus programs and firewalls may block the creation of a local network, considering it potentially dangerous. If problems arise, temporarily disable third-party security suites or add an exception for the private network.
For maximum connection speed, it is advisable that both laptops support the same Wi-Fi standard. If one laptop is equipped with a module Wi-Fi 5 (AC), and the second one only Wi-Fi 4 (N), the connection will operate at the speeds of the older device. You can check the supported standards in the adapter properties via the command line.
Create a network using Mobile Hotspot in Windows
The simplest and most modern way to create a Wi-Fi network between laptops is implemented in the Windows 10 and 11 interface. The "Mobile Hotspot" feature allows you to broadcast the internet or a local network to other devices. This method doesn't require complex commands and is suitable for most users.
To start setting up the laptop that will act as a server (distributor), you need to go to the menu Start → Settings → Network & InternetIn the left column, select "Mobile Hotspot." Here, the system will prompt you to select the connection to be shared. If there is no internet connection, select any available adapter or leave the default selection—the system will automatically create a local network.
Next, click the "Edit" button to set the network name (SSID) and password. Use a strong password, as the signal range may extend beyond your room. After saving the settings, toggle the "Allow the network to use my internet connection" switch to the "On" position.
☑️ Check before launching a hotspot
Now switch to the second laptop. Click the Wi-Fi icon in the system tray (lower-right corner), find the newly created network in the list, and click "Connect." Enter the password you set earlier. After successful authentication, Windows will ask for the network type. Select "Private" to make your device discoverable.
In some cases, especially on corporate laptops with strict security policies, hotspot creation may be blocked by the administrator. In this case, the system will display a notification, requiring you to use alternative configuration methods or contact the IT department.
Configuration via command line (Ad-hoc method)
If the graphical interface doesn't work or you need more flexible configuration, you can use the command line. This method creates a classic ad-hoc network. It's universal and works even on older versions of Windows that don't have the Hotspot feature.
Launch the command prompt as administrator. To do this, right-click the Start icon and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)." First, check that your hosting provider supports it with the following command:
netsh wlan show drivers
In the output, look for the line "Hosted network support." If it says "Yes," you can continue. If it says "No," update your Wi-Fi adapter driver. To create a network, enter the command, replacing MyNetwork to the desired name, and MyPassword for password (minimum 8 characters):
netsh wlan set hostednetwork mode=allow ssid=MyNetwork key=MyPassword
After the command has successfully completed, the network is created but not yet running. To activate it, use the following command:
netsh wlan start hostednetwork
Now on the second laptop the name should appear in the list of available networks MyNetworkConnect to it using the specified password. This method is useful because it allows you to create a network with specific parameters that may not be available in the graphical interface.