Situations requiring the connection of two laptops into a single network arise quite often, especially if a router is unavailable or the internet service provider is temporarily down. This may be necessary for quickly transferring large files, playing together on a local network, or even remotely controlling one device from another. Fortunately, modern operating systems such as Windows 10 And Windows 11, allow you to implement this task using built-in tools, without requiring the purchase of additional equipment.
The basic principle is that one laptop acts as a virtual router, creating an access point to which the second device connects. This method is often referred to as "wireless mode." Ad-hoc or "computer-to-computer." Unlike a traditional infrastructure, where all devices communicate through a central hub, here communication is established directly between network adapters. This ensures a stable connection and a fairly high data transfer rate, limited only by the capabilities of your Wi-Fi module.
Before starting setup, ensure that both devices have wireless modules enabled and the latest drivers installed. Older driver versions may not support the virtual hotspot feature or may be unstable. It's also worth checking that the "Private" network profile is selected on both laptops, as many sharing and discovery features will be blocked by the security system in "Public" mode.
Preparing equipment and checking drivers
The first step in establishing a direct connection is a thorough hardware diagnostic. Not all wireless adapters support hosted network mode, although this feature is common on modern laptops. You need to open the Device Manager and check the properties of your Wi-Fi adapter. In the properties window, under the "Advanced" tab, you can often find the "Ad-hoc Mode" or "Hosted Network" setting, which should be enabled.
It's also important to update your network card software. Manufacturers often release patches that fix connection errors. Visit the website of your laptop or network chip manufacturer (e.g. Intel, Realtek, Qualcomm Atheros) and download the latest driver. Installing the driver from scratch sometimes solves issues when the system doesn't recognize the option to create a new network.
- 🔍 Open Device Manager using Windows Search and find the "Network Adapters" section.
- 📡 Make sure that the adapter named Wireless or Wi-Fi is listed and is not marked with a yellow exclamation mark.
- 🔄 Right-click on the adapter and select "Update driver" if you haven't done so recently.
After updating the drivers, it is recommended to restart both laptops. This will clear the network settings cache and apply the changes. If you use third-party antivirus software or firewalls, temporarily disable them during setup, as they may block the creation of the virtual adapter.
Creating a Wireless Ad Hoc Network in Windows 10/11
In modern versions of Windows, the process of creating an access point is significantly simplified compared to legacy versions like Windows 7. Using the command line is no longer necessary, although we'll cover this method later for advanced users. The standard interface allows you to deploy a network in a few clicks via the "Settings" menu.
On the laptop that will act as a server (distributing Internet and files), go to the menu Start → Settings → Network & Internet → Mobile hotspotHere you'll see a status switch. Before activating it, click the "Change" button to set the network name (SSID) and a strong password. Encryption is recommended. WPA2-Personal, as it provides a sufficient level of protection against unauthorized access.
⚠️ Important: When creating an access point, make sure that your Wi-Fi adapter is selected in the "Sharing" list, and not a virtual or Ethernet port, unless you plan to share wired internet.
After enabling the "Mobile Hotspot" feature, the system will create a virtual adapter. On the second laptop, open the list of available Wi-Fi networks, find the newly created name, and enter the password. After a successful connection, Windows will ask if you want to make this computer discoverable. Be sure to select "Yes" to activate private network mode.
Setting up shared access to files and folders
Simply connecting two laptops via Wi-Fi without a router doesn't provide instant file access. The operating system isolates each user's resources by default for security purposes. To start sharing data, you need to set up network discovery and sharing.
Open Control Panel and go to Network and Sharing Center. On the left, select Change advanced sharing settings. In the Private (current) profile, enable Turn on network discovery and Turn on file and printer sharing. It's also a good idea to enable Let Windows manage HomeGroup connections, if available in your OS version.
Now you need to select the folder you want to share. Right-click the folder, select "Properties," and go to the "Sharing" tab. Click the "Share" button and add the user "Everyone," granting them read and write permissions. The folder will then be visible on the second laptop in the "Network" section of File Explorer.
- 📂 Create a separate folder on drive C or D for file sharing to avoid getting confused in system directories.
- 🔐 Make sure the folder has "Read and Write" permissions, otherwise the second laptop won't be able to upload files there.
- 👥 In the advanced sharing settings, disable "Password-protected sharing" only if you completely trust the people around you.
If the second laptop doesn't see the first one, try entering the first laptop's IP address manually in File Explorer. To do this, find out the IP address on the first device (command ipconfig in the command line, look for the IPv4 address) and enter it in the address bar of the second laptop's explorer in the format \\192.168.137.1 (example).
Using the command line for advanced settings
For users who prefer complete control over the system, or in cases where the graphical interface is malfunctioning, using the console is ideal. The command line allows you to create networks with any parameters that may not be available in the standard Windows settings menu.
Launch the command prompt as administrator. First, check for hosted network support with the command netsh wlan show driversThe "Hosted Network Support" line should say "Yes." If it says "No," you won't be able to create an access point programmatically without replacing the drivers or adapter.
netsh wlan set hostednetwork mode=allow ssid=MyDirectNetwork key=MyPassword123
This command creates a network configuration named MyDirectNetwork and a password. Next, the network needs to be started with the command netsh wlan start hostednetworkAfter launching, a new adapter will appear in your network connections. To use it for internet access (if your primary laptop has one), you need to allow access for other users in the "Access" tab of the primary adapter's properties and select the virtual connection you just created.
⚠️ Warning: When using the command line, pay attention to the case of characters in commands. A syntax error can prevent the network from starting, although the system may not display any errors.
To stop the network, use the command netsh wlan stop hostednetworkThis method is especially useful if you need to quickly deploy a network on a clean computer without having to navigate through the settings menu, or if you need to create a network with specific security settings.
Setting up a local network for gaming and remote control
Connecting two laptops via Wi-Fi without a router opens up great opportunities for gamers. Many games, both old and new, support LAN (Local Area Network) mode, allowing you to play together without needing a global internet connection. Ping on such a network is minimal, as packets don't travel beyond your "tandem."
Besides gaming, this combination is useful for remote control. Using the built-in Windows Remote Desktop Connection (RDP) tool or third-party utilities like TeamViewer (in LAN mode) or VNC, you can control one laptop from another. This is convenient if, for example, one laptop is connected to a larger screen or has more powerful hardware, and the other is used as a remote control.
☑️ Checking your online gaming readiness
To set up a remote desktop on the target computer (which will be controlled), you need to go to Settings → System → Remote Desktop and turn on the switch. On the control laptop, launch the Remote Desktop Connection application and enter the IP address of the target machine. The system will prompt you for the account login and password.
- 🎮 For games, make sure your firewall settings allow access to the game's executable file (.exe).
- 🖥️ When remotely controlling a laptop via RDP, the target laptop's screen may go blank - this is normal behavior of the Windows security system.
- 📉 Wi-Fi gaming speeds may be lower than cable gaming speeds due to potential signal interference.
It's important to keep in mind that a wireless connection is less stable than a wired one. If you're planning a long gaming session or working with critical data, try to minimize the number of physical obstacles between your laptops.
Troubleshooting and Error Table
Even with proper setup, difficulties can arise. These are most often related to IP address conflicts, antivirus blocking, or incompatible Wi-Fi standards (for example, one laptop only operates on the 2.4 GHz band, while the other tries to connect on 5 GHz, although in Ad-hoc mode this is usually not a problem, as the frequency is selected automatically).
If your laptop connects but says "No Internet Access" (even though you don't need the internet for a LAN connection), that's normal. The main thing is that the network status should say "Connected." If you can't access files, check that both computers are in the same workgroup (usually WORKGROUP) and had different names.
| Problem | Possible cause | Solution |
|---|---|---|
| The laptop doesn't see the network. | The driver does not support the mode | Update the driver or use a USB Wi-Fi adapter |
| There is a network, but there is no access to folders | Blocked by firewall | Add a firewall rule for "Public Access" |
| Low transmission speed | Interference or distance | Bring the devices closer together and remove any metal barriers |
| RDP connection error | Invalid network profile | Switch the network profile to "Private" in Wi-Fi settings |
For deep diagnostics use the command pingEnter . ping [IP address of the second laptop] in the command line. If you receive a response ("Reply from..."), then the physical connection and the underlying TCP/IP protocol are working properly. If you receive a "Timeout exceeded" response, the problem lies with your network settings or firewall.
What to do if IP addresses conflict?
If both laptops try to assign themselves the same IP address (e.g., 192.168.137.1), the connection won't work. Go to "Adapter Settings," select IPv4 properties, and manually enter static addresses. For example, 192.168.10.1 for the first laptop and 192.168.10.2 for the second. Subnet mask: 255.255.255.0.
Connection security and optimization
Keep in mind that by creating an open or weakly secured Wi-Fi network, you theoretically allow your neighbors to see your devices. Although the ad hoc Wi-Fi range is typically limited to a single room, using a strong password (WPA2) is a must for good digital hygiene.
To optimize the transfer speed of large files, try to place laptops within direct line of sight of each other. Walls, especially load-bearing ones with reinforcement, and household appliances (microwaves, baby monitors) create significant interference in the 2.4 GHz band. If your adapters support 5 GHz, the connection will be more stable and faster, but the range will be shorter.
Also, monitor your power management settings. Windows may disable your Wi-Fi adapter to save power, which will cause the connection to drop. In Device Manager, under the Wi-Fi adapter properties, on the "Power Management" tab, uncheck "Allow the computer to turn off this device to save power."
⚠️ Note: Operating system interfaces and menu item names may vary slightly depending on your Windows build version (Home, Pro, Enterprise) and installed updates. If you can't find the item, try searching for it in your system settings.
Connecting two laptops via Wi-Fi without a router is a powerful tool that should be in the arsenal of any advanced user. It allows you to solve data transfer problems and organize local interactions where traditional infrastructure is unavailable.
Frequently Asked Questions (FAQ)
Is it possible to access the Internet on a second laptop via this connection?
Yes, as long as the first laptop (the one creating the network) has an active internet connection (via Ethernet or a 3G/4G modem). To do this, enable "Internet Connection Sharing" in the active internet connection properties and select the virtual adapter of the created network. The second laptop will access the global network through the first.
What is the maximum file transfer speed over Wi-Fi Direct?
Speed depends on the Wi-Fi adapter standard. If both laptops support the 802.11n standard, the actual speed will be around 20-30 Mbps. With the 802.11ac standard (Wi-Fi 5), speeds can reach 50-80 Mbps and higher, comparable to fast USB 2.0/3.0. However, signal instability may reduce these figures.
Does this method work if one laptop is on Windows and the other is on macOS or Linux?
Creating a hotspot in Windows can be difficult for other operating systems to recognize in Ad-hoc mode without a router, as Windows 10/11 uses a specific security type. However, if Windows creates a regular hotspot, macOS and Linux should see it as a regular Wi-Fi network. For file sharing between different operating systems, it's better to use cross-platform software, such as FileZilla (server mode) or SMB (built into macOS and Linux, configurable on Windows).
Why does the network disappear after turning off the laptop server?
Because in this setup, one laptop acts as a server (access point). Without it, the network physically doesn't exist. Unlike a router, a laptop isn't designed to operate 24/7 as network equipment, although technically it's possible with the appropriate power settings.