Establishing a local connection between two computers without a router is a challenge many users face when they need to quickly transfer large amounts of data. Local area network allows you to share files, play online games, or share a printer even if there is no router or internet cable in the room. In the operating system Windows 10 This process is significantly simplified compared to previous versions, but requires precise execution of a sequence of actions.
There are several ways to implement such a connection: creating a computer-to-computer (Ad-hoc) network, using the Mobile Hotspot function, or a direct connection via Wi-Fi DirectThe method you choose depends on your goals: whether you need full internet access on the second device or just want to transfer files. In this article, we'll discuss the most reliable and up-to-date setup methods that guarantee stable operation without the need to install third-party software.
Before you begin configuring the software, you need to make sure that the Wi-Fi modules on both laptops are working properly and enabled. Drivers The wireless adapter settings must be installed correctly, as creating an access point is impossible without managing the adapter. Also, pay attention to the battery level, as active Wi-Fi operation in access point mode can significantly reduce the device's battery life.
Preparing equipment and checking drivers
The first step to successfully creating a local network is to diagnose the hardware. You need to ensure that both laptops can see wireless networks and are capable of creating them. Open Device Manager by pressing the key combination Win + X and selecting the appropriate item in the menu. In the list of devices, find the "Network adapters" section and check for your Wi-Fi module.
If there's a yellow exclamation mark next to the adapter's name or the device isn't listed, the drivers aren't installed or aren't working correctly. In this case, download the latest software from the laptop manufacturer's official website using another device with internet access. Windows 10 It often finds basic drivers itself, but for access point mode it is better to use specialized software from the manufacturer.
⚠️ Important: Make sure the Wi-Fi Connection Manager service is enabled on both laptops. Without this service enabled, creating a virtual adapter for internet sharing or networking will be impossible, even if the drivers are installed.
It is also important to check the physical condition of the Wi-Fi switches on the laptop cases, if any. Some models Lenovo or HP have hardware blockers for wireless modules. After enabling the adapters, it is recommended to reboot both computers to clear any static network service errors before beginning fine-tuning.
Checking the drivers is the foundation without which further steps are pointless. If the module is operating normally, it should appear in the list of available networks and allow connections to external access points. Only after confirming stable operation in client mode can you move on to host or network manager mode.
Creating a wireless network using the Command Line
One of the most reliable ways to create a local network between two laptops via Wi-Fi in Windows 10 is to use the built-in command line utility. This method allows you to create a virtual adapter that will broadcast the network even if the system's graphical interface isn't working correctly. To launch, open the command prompt as an administrator by finding cmd in the Start menu search.
In the window that opens, enter the command to create the network. The command syntax is as follows:
netsh wlan set hostednetwork mode=allow ssid=MyLocalNetwork key=SuperPassword123 keyUsage=persistent
In this command the parameter ssid sets the name of your network, which will be visible when searching on the second laptop. Parameter key specifies the connection password, which must contain at least 8 characters. After entering the command, the system will confirm the successful creation of the virtual adapter. The next step is to start the network with the command netsh wlan start hostednetwork.
☑️ Network startup check
After launching, in the list of network connections (ncpa.cpl) A new connection will appear with the name specified in the ssid parameter. Now, on the second laptop, find this network in the list of available Wi-Fi networks and enter the set password. If everything is done correctly, the connection status will change to "Connected," and the devices will be able to "see" each other in the network neighborhood.
It's worth noting that this method creates a classic infrastructure network, with one laptop acting as a router. This ensures better compatibility with older devices and printers that may not support more modern direct connection protocols. However, if you close the command prompt or the laptop goes into sleep mode, the network may be disconnected, requiring you to re-enter the startup command.
Setting up the Mobile Hotspot feature
In more recent builds Windows 10 (Starting with version 1607), a convenient graphical feature called "Mobile Hotspot" has been added, allowing you to turn your laptop into a hotspot without using the command line. This is the easiest option for users who don't want to mess with codes and the terminal. To activate, go to the Start menu, select "Settings" (the gear icon), and open "Network & Internet."
In the left menu column, select "Mobile Hotspot." Here, you'll need to select a connection source for internet tethering (if required) or simply create a local network. You can enter your own values in the "Network Name" and "Network Password" fields or accept the system defaults. Set the "Allow other devices to use my internet connection" switch to "On."
Why doesn't Hotspot turn on?
The feature may not activate if Internet Connection Sharing (ICS) is disabled on your computer or if your network adapter doesn't support access point mode. Another common cause is an antivirus program that blocks the creation of virtual adapters for security reasons.
After enabling the feature on the second laptop, the created access point will appear in the list of Wi-Fi networks. When connected, you'll receive an IP address automatically thanks to the built-in Windows DHCP server. This simplifies the setup process, as manually entering addresses is not required, reducing the risk of errors for beginners.
The Mobile Hotspot feature automatically manages the frequency range, choosing between 2.4 GHz and 5 GHz depending on the capabilities of your adapter. If both laptops support the standard 802.11ac or newer, your data transfer speeds will be significantly higher than using older command line configuration methods, which often default to the 2.4 GHz band.
Setting up shared access to files and folders
Once the physical connection is established, you need to configure software access to resources. Simply connecting to Wi-Fi isn't enough—you need to allow data exchange. Open Control Panel, go to Network and Sharing Center, and select Change advanced sharing settings. This is where you'll find the key section, "All Networks."
Under "All Networks," find "Folder Sharing" and select "Turn on Public Folder Sharing." Below that is the critical "Password-protected sharing" setting. If you're in a secure home environment, you can disable this to simplify access. However, if there's a risk of unauthorized access, it's best to leave the protection enabled and use the same accounts on both laptops.
To grant access to a specific folder or drive, right-click it, select "Properties," and go to the "Sharing" tab. Click "Advanced" and check "Share this folder." Under "Everyone" or a specific user, check "Full Control," "Modify," and "Read."
| Access parameter | Recommended value (Home) | Recommended value (Office/Public) | Impact on safety |
|---|---|---|---|
| Network profile | Private network | Public network | High (hides the PC from others) |
| Network discovery | Included | Off | Average (PC is visible in the list) |
| Password protection | Disabled | Included | Critical (requires login/password) |
| Encryption | WPA2-Personal | WPA3 (if supported) | High (traffic protection) |
Remember that the network type must be set to "Private." If Windows detects a network as "Public," it automatically blocks most discovery and sharing features for security reasons. You can change the network type by clicking the name of the connected Wi-Fi network in the system settings and selecting the appropriate profile.
Troubleshooting visibility and connectivity issues
It often happens that laptops are connected to the same network but don't see each other in File Explorer. First, check Windows services. Click Win + R, enter services.msc and locate the Function Discovery Resource Publishing service. Make sure it is running and its startup type is set to Automatic.
The second common problem is firewall or antivirus settings. Third-party antiviruses (Kaspersky, ESET, Avast) often have their own firewall modules that block local connections, deeming them suspicious. Try temporarily disabling your antivirus's firewall to test this hypothesis.
⚠️ Note: Security settings interfaces may differ depending on the antivirus version. If the network works again after disabling protection, do not leave your computer unprotected – add an exception rule for the local subnet in the firewall settings.
You may also need to enable SMB 1.0 support, although this is less secure and not recommended for permanent settings. In Windows 10, this feature is disabled by default. If you need to connect a very old device or a specific network drive, go to Control Panel → Programs and Features → Turn Windows features on or off and find "SMB 1.0/CIFS file sharing support."
Alternative methods and direct connection
If standard methods don't work or higher speeds are required, you can consider bridging the connections. For example, if one laptop is connected to the internet via cable (Ethernet) and the other only via Wi-Fi, you can create a bridge between these adapters. To do this, in the Network Connections window (ncpa.cpl) select both adapters, right-click and select "Configure Bridge".
Another option is to use technology Wi-Fi Direct, which allows for direct file transfer without creating a full-fledged local network with IP addressing in the traditional sense. However, for working with shared folders and network drives, the classic local network described above remains the most universal solution, compatible with any network software.
For advanced users, a method for setting up static IP addresses is available. This may be necessary if the DHCP server (which distributes addresses) is unstable. In the protocol properties Internet Protocol version 4 (TCP/IPv4) You can enter the addresses manually, for example, 192.168.1.1 for the first and 192.168.1.2 for the second, with a subnet mask of 255.255.255.0.
In conclusion, creating a local network between two laptops via Wi-Fi in Windows 10 is a process that takes no more than 10-15 minutes with proper preparation. Choosing between the command line and the graphical interface depends on your preference, but both methods provide a reliable connection.
Regularly check for Wi-Fi adapter driver updates, as manufacturers frequently release patches that improve stability in access point mode. A properly configured local network will be a convenient tool for work, gaming, and multimedia in your home or office.
Why can't the second laptop see the first one's folders, even though the network is working?
The problem is most likely with the network profile. Make sure the Wi-Fi profile on both devices is set to "Private" rather than "Public." Also, check that network discovery is enabled and that your antivirus isn't blocking the connection.
Is it possible to play online games over such a network?
Yes, you can. A local area network (LAN) via Wi-Fi is ideal for multiplayer gaming. The main thing is that your firewall allows the application to access the network, and both computers are on the same subnet.
What is the maximum file transfer speed over such a network?
Speed depends on the Wi-Fi adapter standard. For 802.11n, the actual speed will be around 20-30 Mbps, while for 802.11ac, it will be up to 50-80 Mbps and higher. This is significantly faster than Bluetooth, but slower than Gigabit Ethernet.
Is internet required for a local network to function?
No, internet access is not required. The local network operates autonomously between devices. However, if you want to share internet from one laptop to another via the network, the receiving device will have internet access.