Creating a local network between devices via Wi-Fi — a challenge faced by gamers for co-op, office workers for file sharing, and simply users who want to sync data without the cloud. Laptops running Windows 10/11 allow you to set up such a network in literally 10-15 minutes, without resorting to routers or cables. The main thing is to choose the right operating mode (Ad-Hoc or SoftAP), configure security settings and avoid common errors with drivers or IP conflicts.
Many people mistakenly believe that a router is essential for a local network. In fact, modern laptops with modules Wi-Fi 5/6 (For example, Intel AX200 or Qualcomm Atheros QCA61x4) support the creation access points or direct connection Wi-Fi DirectThis means you can connect two laptops directly, like with a cable, but without the need for physical wires. In this article, we'll cover all the methods—from manual setup through command line We'll also explain how to share the internet connection from one laptop to another, if necessary.
⚠️ Attention: If you plan to connect devices to the network macOS or Linux, please note that the modes Ad-Hoc These operating systems may require additional drivers. For cross-platform compatibility, it's best to use the SoftAP (virtual router).
1. Preparing your laptop: checking compatibility and hardware
Before you begin setup, make sure your laptop supports creating a local network via Wi-Fi. To do this, check two key points:
- 🔍 Availability of Wi-Fi adapter: Open
device Manager(Win + X → Device Manager) and find the sectionNetwork adaptersLook for devices with names like Wireless-AC, Wi-Fi 6 or Dual Band. - 📋 Hosted network support: In the command line (
Win + R → cmd) enter:netsh wlan show driversFind the line in the output
Hosted network support- there should beYes. - 🔄 Current drivers: Outdated drivers may be blocking network creation. Update them via
device Manageror from the manufacturer's website (Intel, Realtek, Broadcom).
If the command output netsh wlan show drivers costs No, this means that your adapter does not support the mode SoftAPIn this case, the only option left is with Ad-Hoc (direct connection), but it is less stable and does not allow you to distribute the Internet. The alternative is to purchase an external Wi-Fi adapter with support AP-mode (For example, TP-Link TL-WN725N).
2. Method 1: Creating a network via the command line (SoftAP mode)
This is the most reliable method and works on all versions of Windows starting from Windows 7It allows you to create a fully-fledged access point to which you can connect multiple devices and even share the internet.
Open command prompt as administrator (Win + X → Terminal (Admin)) and execute the commands in order:
- Set the network name (SSID) and password (minimum 8 characters):
netsh wlan set hostednetwork mode=allow ssid="MyLocalNet" key="12345678" keyUsage=persistentHere
MyLocalNet— the name of your network, and12345678- password. - Start the network:
netsh wlan start hostednetwork - Check the status:
netsh wlan show hostednetworkIn the line
Stateshould bePosted.
Your network is now active, but without internet access. To enable internet access, go to Control Panel → Network and Sharing Center → Change adapter settings. Find your primary internet connection (e.g. Ethernet or Wi-Fi), right-click → Properties → Access. Check the box. Allow other network users to share your Internet connection and select the created network from the drop-down list (usually it is called Local Area Connection* X).
Is the network running (command `netsh wlan show hostednetwork`)?|Is the network visible on other devices?|Do you have internet access (if you are distributing)?|Is the firewall configured correctly?-->
3. Method 2: Direct Ad-Hoc connection (without Internet sharing)
If the regime SoftAP not supported or you only need to connect two devices without internet access, use Ad-Hoc modeThis method is simpler, but less functional:
- Open
Control Panel → Network and Sharing Center → Set up a new connection. - Select
Setting up a wireless computer-to-computer network(V Windows 11 This item may be missing - then usecommand linewith parametermode=allowwithouthostednetwork). - Set the network name (
SSID), security type (WPA2-Personal) and password. - Connect the second device to the created network manually.
⚠️ Attention: In mode Ad-Hoc data transfer rate is limited to ~11 Mbps (standard 802.11b), even if your adapter supports 802.11acFor transferring large files it is better to use SoftAP or cable.
Ad-Hoc mode does not support internet distribution via ICS (Internet Connection Sharing) in newer versions of Windows. If you need internet on a second device, use only the method with hostednetwork.
4. Setting up shared folders and network discovery
Creating a network is only half the battle. To enable devices to exchange files, you need to set up network discovery And public access:
- 📂 Enable detection: Go to
Control Panel → Network and Sharing Center → Change advanced sharing settings. Turn onNetwork discoveryAndFile and Printer Sharingfor profilePrivate. - 🔓 Opening access to a folder: Right-click on the folder →
Properties → Access → Share. Select a userAlland set the resolutionReading and writing. - 🌐 Checking the connection: On the second device, open
Netin Explorer (Win + E → Network). Wait for the name of the first laptop to appear and open the shared folder.
If the folders are not displayed, check:
- The same working group on both devices (by default)
WORKGROUP). - Disconnected firewall (temporarily) or added exceptions for
File and Printer. - The same IP subnet (For example,
192.168.137.XForSoftAP).
What to do if folders won't open?
If you receive a "No access" error or a login/password request when attempting to access the site, please follow these steps:
1. On the device where the folder is shared, open Computer Management → Local Users → Users and check that guest access is enabled.
2. In the Local Policy Editor (gpedit.msc) go to Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options and find the parameter Network Access: Sharing and Security Model for Local Accounts. Set value Normal.
3. Restart both devices.
5. Eliminating typical errors
Even with proper setup, problems can still arise. Let's look at the most common ones and their solutions:
| Error | Cause | Solution |
|---|---|---|
Failed to start hosted network |
The driver does not support SoftAP or a conflict with the antivirus |
Update your driver or disable your antivirus. Check support via netsh wlan show drivers |
| The network is visible but does not connect. | Incorrect password or channel conflict | Change your password to something simple (for example, 12345678) or change the channel manually |
| No internet access | Not configured ICS or IP conflict |
Check your settings Public access and do it ipconfig /release + ipconfig /renew |
| Slow file transfer speed | Mode Ad-Hoc or interference on the channel |
Switch to SoftAP or change the channel to 5 GHz (for example, 149) |
If after all these steps the network still doesn't work, try resetting the network settings:
netsh int ip resetnetsh winsock reset
ipconfig /flushdns
Then restart your laptop.
Via command line (SoftAP)|Ad-Hoc mode|Third-party programs (Connectify, MyPublicWiFi)|Haven't tried it yet-->
6. Alternative methods: third-party programs and Wi-Fi Direct
If the built-in Windows tools are not suitable, you can use third-party utilities or technology Wi-Fi Direct:
- 🖥️ Virtual router software:
- Connectify Hotspot — paid, but with advanced settings (MAC filtering, traffic control).
- MyPublicWiFi - free, supports
SoftAPAndICS. - Virtual Router Plus — open source, but may conflict with antivirus software.
- 🔗 Wi-Fi Direct: Modern laptops (with Wi-Fi 5/6) support direct file transfer without creating a network. Enabled via
Settings → Devices → Add Bluetooth or other device → Wireless display or dock. - 📡 Mobile hotspot (Windows 10/11): IN
Settings → Network & Internet → Mobile HotspotYou can quickly distribute the Internet via Wi-Fi, but without the ability to set up a local network.
⚠️ Attention: Programs like Connectify may conflict with built-in Windows services. Disable them before using them. hostednetwork via command:
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=disallow
7. Local network security: what you need to know
A local Wi-Fi network is more vulnerable than a wired one. Follow these rules to avoid unauthorized access:
- 🔐 Complex password: Use a combination of 12+ characters with numbers and special characters (eg.
L0c@lN3t_2026!). - 🛡️ MAC Filtering: In the access point settings (if you use third-party programs), add only the MAC addresses of your devices to the whitelist.
- 📵 Network shutdown: After use, disable the access point with the command:
netsh wlan stop hostednetwork - 🔍 Connection monitoring: Check the list of connected devices via
Control Panel → Network and Sharing Center → View your active networks.
If you are distributing the Internet via a local network, keep in mind that all connected devices will use your external IPThis means their online activity can be linked to you. Avoid sharing internet in public places or use VPN for anonymization.
Frequently Asked Questions (FAQ)
Is it possible to create a local network between a laptop and an Android phone?
Yes, but with reservations. Phone on Android can connect to the network SoftAP, created on a laptop, but to exchange files you will need:
- Install a file manager with support on your phone
SMB(For example, Solid Explorer or FX File Explorer). - On the laptop, share the folder and specify the network path (
\\IP_address\folder_name). - Enter your Windows account login/password (if requested).
For iPhone the process is more complicated - you will need third-party software like Feem or LocalSend.
Why is file transfer speed via Wi-Fi lower than via cable?
This is due to several factors:
- Interference: The 2.4 GHz channels are congested with other networks. Switch to 5 GHz.
- Protocol:
Ad-Hocoperates at speeds up to 11 Mbps, andSoftAP— up to 866 Mbit/s (at Wi-Fi 5). - Power saving settings: IN
Device Managerdisable the optionAllow the computer to turn off this device to save powerfor Wi-Fi adapter.
For maximum speed use SoftAP on a 5 GHz channel with a width of 80 MHz.
How do I share internet from one laptop to another if my primary connection is via a USB modem?
The algorithm is the same as for the regular Internet, but with some nuances:
- Create a network through
netsh wlan set hostednetwork. - IN
Network and Control CenterFind your USB modem's connection (usuallyEthernet 2orLocal Area Network Connection). - Open its properties →
Accessand allow use forLocal Area Connections* X.
⚠️ Attention: Some USB modems (for example, from Megaphone or Beeline) block internet distribution. In this case, additional software will be required, such as Connectify with function Wi-Fi Repeater.
Is it possible to play over a local network via Wi-Fi without lag?
Yes, but with some reservations:
- For CS:GO, Dota 2 or Minecraft the delay via Wi-Fi will be ~10-30 ms (versus 1-5 ms via cable).
- Use
SoftAPon a 5 GHz channel with a width of 80 MHz for minimal packet loss. - Disable background downloads and antivirus software while playing.
For competitions or online tournaments it is better to use wired connection.
How do I reset all network settings to factory defaults?
If you've been experimenting with the settings and want to return everything to its original state, run:
- Reset network settings:
netsh int ip resetnetsh winsock reset
netsh advfirewall reset - Deleting all saved networks:
netsh wlan delete profile name=* - Restarting the laptop.
After that all the settings SoftAP, Ad-Hoc and shared folders will be reset.