Connecting a laptop and desktop computer to a single local network via Wi-Fi opens up opportunities for quick file sharing, printer sharing, online gaming, and even remote control. However, many users encounter issues: the devices can't see each other, the data transfer speed is poor, or settings are lost after a reboot. In this article, we'll cover every step—from choosing the optimal connection method to fine-tuning. Windows and diagnostics of typical errors.
It is important to understand that a local network via Wi-Fi can operate in two modes: ad-hoc (direct connection without a router) and through a router. The first option is suitable for temporary tasks, but often suffers from instability, especially on Windows 10/11The second method is more reliable, but requires proper router configuration. We'll cover both approaches and explain how to ensure maximum data transfer speed and connection security.
1. Choosing a connection method: ad-hoc vs. router
Before setting up, decide which method is right for you. Direct connection (ad-hoc) is convenient for one-time tasks—for example, transferring files from a laptop to a PC without cables. However, it has limitations:
- 🔌 Works only within the range of Wi-Fi adapters (usually up to 10 meters without obstacles).
- 🐢 Data transfer speed is lower than via a router (maximum ~50-70 Mbps in practice).
- 🔄 The connection may be interrupted when devices go into sleep mode.
The network through the router is more stable and faster (up to 300-1000 Mbps depending on the standard Wi-Fi 5/6), but requires:
- 📡 Having a router with support
WPA2/WPA3. - 🔧 Correct configuration of DHCP and local IP addresses.
- 🔒 Unified working group (
WORKGROUPby default in Windows).
If you need a temporary solution for file transfer, choose ad-hocFor continuous operation (gaming, streaming, remote access), set up a network via a router. IN Windows 11 support ad-hoc The number of networks is limited - to create them you will have to use the command line.
2. Setting up a direct connection (ad-hoc) in Windows
To create ad-hoc-networks on Windows 10/11 Follow these steps. Please note: your laptop must be powered on. Wi-Fi adapter (if it is disabled, activate it via device Manager or function keys, for example, Fn+F2 on Lenovo or HP).
Method 1: Via the command line (universal for Windows 10/11)
Open Command Prompt as Administrator (Win + X → Terminal (Administrator)) and enter the commands sequentially:
netsh wlan set hostednetwork mode=allow ssid="MyAdHocNetwork" key="12345678" keyUsage=persistent
netsh wlan start hostednetwork
Where:
MyAdHocNetwork— the name of your network (you can replace it with anything).12345678— password (minimum 8 characters).
After executing the second command, the network will be created. Now, on the second device (PC or another laptop), connect to it as you would to a regular Wi-Fi hotspot.
Method 2: Via the graphical interface (Windows 10 only)
IN Windows 10 can be created ad-hoc-network via the parameters menu:
- Open
Settings → Network & Internet → Mobile Hotspot. - In the section
Sharing an Internet connectionselectWi-Fi. - Click
Changeand set the network name and password. - Activate the switch
Allow use of my internet connection.
Wi-Fi adapter is enabled on both devices|
Airplane mode is disabled on both PCs|
The network password must be at least 8 characters long|
Antivirus software is not blocking network connections (check your firewall settings) -->
If the network does not appear in the list of available networks, check if your Wi-Fi adapter supports the mode. ad-hocOn some laptops (for example, with adapters Intel AX200/AX210) this mode can be disabled in the drivers.
How to check if an adapter supports ad-hoc?
Open device Manager, find your Wi-Fi adapter, open it Properties → AdvancedLook for parameters like Ad Hoc 11n or Wireless ModeIf there is an option there 802.11a/b/g without mentioning n/ac/ax, the adapter supports ad-hoc only in outdated standards (speed will be lower).
3. Setting up a network via a router: the best option
If you have a Wi-Fi router, it's best to use it to create a local network. This will ensure a stable connection and high speed. Here are the basic steps:
- Connect both devices to the same Wi-Fi network (use the same one
SSIDand password). - Check the working group: Both PCs must have the same workgroup (usually
WORKGROUP). To check, openSystem properties(Win + Pause/Break) and look at the fieldWorking group. - Set up a network profile How
Private(NotPublic), otherwise Windows will block public access.
Next you need to configure file and printer sharing:
- Open
Control Panel → Network and Internet → Network and Sharing Center. - Select
Change advanced sharing options. - Enable options:
- 🔄
Enable network discovery - 📂
Enable file and printer sharing - 🔓
Disable password-protected sharing(if you want easier access)
- 🔄
4. Checking the connection and troubleshooting
After setup, check if the devices can see each other. To do this:
- Click
Win + R, entercmdand run the command:ping 192.168.1.11(replace
192.168.1.11to the IP of the second device). - If the ping works (no packet loss), the network is working. If not, check your firewall and IP settings.
- 🔒 Change the default Wi-Fi password: use
WPA3(orWPA2-AES, IfWPA3(not supported). The password must be at least 12 characters long, with a mix of letters, numbers, and special characters. - 📶 Select the optimal Wi-Fi channel: use apps like Wi-Fi Analyzer (For Android) or inSSIDer (For Windows) to find the least congested channel in the range
5 GHz. - 🔄 Update your Wi-Fi adapter drivers: Outdated drivers can limit speed. Download them only from the manufacturer's official websites (Intel, Realtek, Broadcom).
- 🛡️ Set up your firewall: Allow incoming connections for
File and Printerin the firewall settings Windows (Control Panel → Firewall → Advanced Settings). - Use
5 GHzinstead of2.4 GHz(less interference, higher throughput). - Disable the option on your router
WMM (Wi-Fi Multimedia), if you observe lags. - For large files (>1 GB), zip them before transferring (e.g. in
.zipor.rar) - this will reduce the load on the network. - 🔌 Direct Ethernet connection: if both devices have ports
RJ-45, connect them with a cable crossover (or a regular patch cord if the ports support itAuto MDI-X). Speed up to1 Gbps. - 📡 Powerline adapters: transmits internet through electrical wiring. Suitable if the router is far away and laying a cable is inconvenient. Speeds up to
500-1000 Mbps(depends on the quality of the wiring). - 📱 USB cable (for laptop and PC): you can use a cable USB-A to USB-A with support
USB Networking(requires a special driver, for example, USB Network Gate). - 🖥️ Remote Desktop (RDP): V Windows Pro You can connect to another PC via
Remote Desktop Connection(mstsc). On the target PC, you need to enable this feature inSettings → System → Remote Desktop. - 🎮 Game streaming: by using Steam Link or Moonlight (For NVIDIA) you can stream games from a powerful PC to a laptop.
- 🖨️ Shared printer: connect the printer to one of the PCs and share it via
Control Panel → Devices and Printers → Printer Properties → Access. - Both devices must be on the same subnet.
- The target PC must have the version Windows Pro/Enterprise (V Home RDP server is disabled).
- Port
3389must be opened in the firewall. - Disabled folder sharing (check permissions in
Properties → Access). - Blocking antivirus (add an exception for
File and Printer). - Different accounts (try using the same usernames and passwords on both PCs).
Common mistakes and their solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| The devices don't see each other | Different workgroups or network profiles | Check it out WORKGROUP and set the network profile as Private |
| No access to shared folders | Sharing is disabled or blocked by antivirus software. | Enable sharing in your network settings and add an exception to your antivirus. |
| Slow file transfer speed | Wi-Fi is working in mode 802.11n or on a congested channel |
Switch the router to 5 GHz and select a free channel in the settings |
| Ad-hoc-the network is constantly breaking down | Saving Wi-Fi adapter energy | Disable the option Allow the computer to turn off this device to save power in the adapter properties |
5. Optimize network speed and security
To keep your local network running quickly and securely, follow these tips:
For maximum file transfer speed:
6. Alternative connection methods: when Wi-Fi isn't suitable
If your Wi-Fi connection is unstable or not fast enough, consider alternatives:
For gaming purposes (e.g. for LAN-games) it is better to use a wired connection - delays (ping) will be minimal. If you play via Wi-Fi, enable the mode on your router Game Mode (if any) or traffic prioritization (QoS) for your devices.
7. Remote access and management of network devices
A local network allows not only for file sharing but also for remote device management. For example:
For RDP important:
How to enable RDP on Windows Home?
Officially this is not possible, but you can use workarounds:
1. Install alternative software, for example, Chrome Remote Desktop or AnyDesk.
2. Turn on Remote assistant (msra), but it is less functional.
3. Upgrade to Windows Pro (if the license allows).
FAQ: Frequently asked questions about setting up a local network via Wi-Fi
❓ Why can't my laptop see the shared folder on my PC, even though I can ping it?
This may be due to:
Also check that the target PC is enabled Function Discovery Resource Publishing Service (services.msc → Function Discovery Resource Publication).
❓ Is it possible to network Windows and Mac PCs?
Yes, but some additional configuration will be required:
- On Mac open
System Preferences → Sharingand turn it onFile sharing. - IN
Parametersselect the folder to share and specify the permissions (for example,All Users → Read and Write). - On Windows connect to Mac through
\\[Mac IP address]\folder_namein Explorer.
For Mac You may need to enable support SMB (in the terminal, run sudo nano /etc/nsmb.conf and add a line [default] smb_neg=smb1_only).
❓ How can I transfer files faster than through shared folders?
Shared Folders (SMB) are not always optimal for large files. Alternatives:
- FTP server: install FileZilla Server on one PC and connect to it from another through FileZilla Client.
- HTTP server: use Python To create a temporary web server:
python -m http.server 8000Then on the second PC, open the browser and go to the address
http://[IP-of-the-first-PC]:8000. - Torrent: create a private torrent file using Transmission or qBittorrent and download it on the second PC.
For maximum speed, disable encryption (if the network is trusted) and use a wired connection.
❓ Why is file transfer speed slower over Wi-Fi than over cable?
This is normal - Wi-Fi is always slower than Ethernet due to:
- Interference from other networks (especially in the range
2.4 GHz). - Limitations of the Wi-Fi standard (for example,
802.11ngives the maximum300 Mbps, A802.11ac— to1 Gbps, but the actual speed is lower). - Encryption overhead (
WPA2/WPA3).
To improve speed:
- Switch to
5 GHz(less interference). - Use adapters that support
Wi-Fi 6 (802.11ax). - Reduce the distance between devices or use a signal repeater.
❓ Can I use a local network for online gaming?
Yes, but with some reservations:
- LAN games (For example, Minecraft, Counter-Strike 1.6) will work without problems if both PCs are on the same network.
- Modern online games (For example, Fortnite, Call of Duty) usually do not support local servers - they require an internet connection.
- To reduce lags in LAN-turn off games
QoSon the router and use a wired connection.
To create a local server in Minecraft:
- Download the server software from official website.
- Launch
server.jarand editserver.properties, having installedonline-mode=false(if you play without the Internet). - On the second PC, connect to the IP of the first PC (find it out through
ipconfig).
If you still have questions about a specific router or adapter model after reading this article, please check the manufacturer's documentation. Settings may vary for each device. TP-Link, ASUS, Keenetic or MikroTik.