Connecting two computers to a local network via Wi-Fi Allows you to quickly share files, play online games, or use shared devices (such as a printer). Unlike a wired connection, a wireless network requires no cables and is suitable for laptops, tablets, or PCs with Wi-Fi adaptersHowever, many users encounter problems: computers "don't see" each other, data transfer speeds leave much to be desired, or settings are lost after a reboot.
In this article we will look at three working methods connecting two PCs via Wi-Fi: via a router, directly (without a router) and using mobile hotspotEach method is suitable for different scenarios, from temporary file sharing to a permanent home network. You'll also learn how to set it up. folder sharing, eliminate common errors and protect your connection from unauthorized connections. If you are using Windows 10/11, macOS or Linux — instructions are adapted to all systems.
1. Connecting via a router: the most reliable method
Usage Wi-Fi router — the optimal option for creating a stable local network between two or more computers. Advantages of this method:
- 🔄 Permanent connection - no need to configure the network after each reboot.
- 📶 High speed — modern routers support standards Wi-Fi 5/6 (up to 1–2 Gbit/s).
- 🔒 Security — data is encrypted according to the protocol
WPA3(in new models). - 🖥️ Extensibility — you can connect additional devices (smartphones, printers, TV).
To connect two computers via a router, follow these steps:
Connect both PCs to one Wi-Fi networks. Make sure they get IP addresses automatically (via protocol
DHCP). You can check this in the network settings:- 🪟 Windows:
Settings → Network & Internet → Wi-Fi → Hardware Properties. - 🍎 macOS:
System Preferences → Network → Wi-Fi → Advanced.
- 🪟 Windows:
Open network profile on both computers and set the network type to "Private" (not "Public"). This will allow data exchange between devices.
Start → Settings → Network & Internet → Status → Change connection properties
Check it out computer visibility on the network. To do this, Windows open File Explorer → NetworkIf the PCs are not displayed, turn on network discovery:
Control Panel → Network and Internet → Network and Sharing Center → Change advanced sharing settings
Both PCs are connected to the same Wi-Fi network|
Network profile set to "Private"|
Network discovery and sharing enabled|
Ping between computers is working (command ping [IP address])-->
If the computers still don't "see" each other, check firewall (Windows Defender (or a third-party antivirus). Sometimes it blocks network connections. Also, make sure the "Network Connections" feature is not enabled on your router. AP Isolation (client isolation) - it prohibits data exchange between devices on the same network.
2. Direct connection without a router (Ad-Hoc)
If you don't have a router at hand, you can connect two computers directly via Wi-Fi in the mode Ad-HocThis method is suitable for temporary file sharing or online gaming, but has limitations:
- ⚠️ Low speed - up to 54 Mbps (standard 802.11g).
- ⚠️ No internet access - local network only.
- ⚠️ Instability — the connection may be broken.
Instructions for Windows 10/11:
On the first computer (which will be access point) open command prompt as administrator and run:
netsh wlan set hostednetwork mode=allow ssid="MyAdHocNet" key="12345678" keyUsage=persistentWhere
MyAdHocNet— the network name, and12345678— password (minimum 8 characters).Start the network:
netsh wlan start hostednetworkOn the second computer, connect to the created network
MyAdHocNetvia the standard Wi-Fi list.Set up file sharing (see section 4).
How to disable Ad-Hoc network?
To stop Wi-Fi sharing, run the following in the command line:
netsh wlan stop hostednetwork
To completely remove a network:
netsh wlan set hostednetwork mode=disallowImportant: Ad-Hoc mode is not supported by default in Windows 11.. If the team netsh wlan set hostednetwork doesn't work, use an alternative method - mobile hotspot (section 3) or third-party programs like Connectify.
⚠️ Attention: Some Wi-Fi adapters (especially those built into older laptops) do not support the mode Ad-HocCheck compatibility in Device Manager or on the manufacturer's website.
3. Using a mobile hotspot (Windows/macOS)
If straight Ad-Hoc doesn't work, the alternative is to turn one of the computers into access point Using the "Mobile Hotspot" feature. This method is easier to set up and is supported by all modern operating systems.
For Windows 10/11:
Open
Settings → Network & Internet → Mobile Hotspot.In the field "Sharing» Select an Internet connection (if you need to share the Internet).
Ask network name And password (minimum 8 characters).
Turn on the option "Allow use of my internet connection» (if required).
On the second computer, connect to the created network.
For macOS:
Open
System Preferences → Sharing.Select "Public Internet» and indicate the source (for example,
Ethernet).In the field "For computers using» mark
Wi-Fi.Click "Wi-Fi settings» and set the network name, channel and password.
Activate sharing by pressing the button
Launch.
Via router|
Direct connection (Ad-Hoc)|
Mobile hotspot|
Another option-->
The advantage of a mobile hotspot is the ease of setup and the ability to Internet distribution from the first computer to the second. However, please note that:
- 🔋 Increased battery consumption — the laptop will discharge faster.
- 📡 Limited range — the signal is weaker than the router's.
- 🔄 OS dependency - on Linux manual configuration may be required via
hostapd.
4. Setting up shared access to files and folders
After connecting computers to the same network, you need to configure public accessto share files. In Windows this is done through "Advanced Sharing».
Instructions for Windows 10/11:
Right-click on the folder you want to share and select "Properties → Access».
Click "Share» and add a user
All(or a specific network user).Set permission level: "Reading" or "Reading and writing».
Go to the "Security" and add the same users with the appropriate rights.
To access a shared folder from another computer:
Open
Conductorand enter in the address bar\\[computer_IP_address]or\\[computer_name].When prompted for authorization, enter the login and password for the account from the first PC.
For macOS:
Open "System Preferences → Sharing" and turn on "File sharing».
Add the folder to the list of shared resources and set access permissions.
On another Mac, connect via
Finder → Go → Connect to Server(entersmb://[IP address]).
⚠️ Attention: If you use guest access (without a password), anyone connected to your Wi-Fi network will be able to access shared folders. For security, set up account-based authentication.
5. Checking the connection and troubleshooting
If the computers are connected to the same network but do not “see” each other, run diagnostics:
| Problem | Cause | Solution |
|---|---|---|
| Computers are not showing up on the network | Network discovery is disabled | Turn on in Settings → Network → Sharing options |
| No access to folders | Incorrect access rights | Check the settings on the Security tab |
| Slow file transfer | Weak Wi-Fi signal | Move computers closer to the router or change the channel |
Ping doesn't work (The specified node is unavailable) |
Blocked by firewall | Add an exception for File and Printer V Windows Defender |
To check the connection, use the command ping:
Find out the IP address of the second computer (for example,
192.168.1.100).On the first PC, open command line and run:
ping 192.168.1.100If packets arrive without loss, the connection is working. If not, check your network settings and firewall.
If ping passes, but access to folders is denied:
- 🔧 Check that on both PCs the "Server" service is enabled (
services.msc → Server). - 🔧 Make sure that computer names do not contain Cyrillic characters or spaces.
- 🔧 Update your drivers Wi-Fi adapter (especially if you use Ad-Hoc).
6. Optimize network speed and security
To speed up file sharing and protect your network from prying eyes, follow these tips:
To increase speed:
- 📶 Use 5 GHz band (if your router supports it). It's less congested and faster. 2.4 GHz.
- 🔄 Set up Wi-Fi channel manually (eg 1, 6 or 11 for 2.4 GHz).
- 🖥️ Connect one of the computers via cable (Ethernet), if maximum speed is required.
For safety:
- 🔒 Change Wi-Fi password complex (minimum 12 characters, with numbers and special characters).
- 🛡️ Turn it off
WPSin the router settings - this is a vulnerable protocol. - 👤 Create guest network for temporary devices (if the router supports it).
If you frequently transfer large files (videos, disk images), consider alternative methods:
- 💾 Local FTP server (For example, FileZilla Server).
- 🔗 Cloud services (Google Drive, Mega) - if the internet speed allows it.
- 📦 External hard drive — for one-time transfer of a large volume of data.
⚠️ Attention: If you are setting up a network in an office or public place, never use open Wi-Fi networks without passwordsThis allows attackers to intercept traffic, including logins and passwords for shared folders.
7. Alternative programs for connecting PCs
If standard means Windows/macOS If they are not suitable, use third-party utilities:
| Program | Platform | Functions | Link |
|---|---|---|---|
| Connectify Hotspot | Windows | Creating a virtual router and distributing internet | Official website |
| Virtual Router Plus | Windows | Free alternative Connectify | GitHub |
| DroidCam | Windows/macOS/Android | Sharing the Internet via a smartphone | Official website |
| LocalSend | Cross-platform | Transfer files over a local network without configuration | GitHub |
For example, LocalSend - this is an open analogue AirDrop For Windows/Linux/macOS/AndroidIt automatically detects devices on the same network and allows you to transfer files without manually setting up sharing.
Suitable for local network gaming Hamachi (virtual VPN network) or ZeroTierThese programs create an encrypted tunnel between computers, even if they are on different physical networks.
FAQ: Frequently Asked Questions
Is it possible to connect a Windows computer and a Mac to the same local network?
Yes, but for this:
- Both devices must be connected to the same router or access point.
- On Mac Turn on File Sharing in System Preferences.
- On Windows grant access to the folder for the user
Guestor create an account with the same name and password as on your Mac.
To access Windows folders from a Mac, use the protocol SMB (V Finder enter smb://[IP address]).
Why is the file transfer speed via Wi-Fi low (1–2 MB/s)?
Reasons and solutions:
- 📡 Weak signal - move the devices closer to the router or use repeater.
- 🔄 Congested channel — change the Wi-Fi channel in the router settings (for example, from 6 to 11).
- 🖥️ Outdated adapter - if your Wi-Fi works according to the standard 802.11n (max 150 Mbps), upgrade your equipment.
- 🔧 Energy saving settings - V Windows Disable the "Allow the computer to turn off this device to save power" option in Device Manager for your Wi-Fi adapter.
How to connect two computers via Wi-Fi if one of them doesn't have an adapter?
Options:
- USB-Wi-Fi adapter — connect it to a PC without a wireless module (cost from 500 ₽).
- Bridge through the second computer:
- Connect a PC without Wi-Fi to a second computer via Ethernet.
- On the second PC, turn on Internet Connection Sharing (
Settings → Network → Mobile Hotspot).
- Powerline adapters — Internet transmission via electrical wiring (if the router is far away).
Do I need to disable my antivirus for a local network to work?
Not necessarily, but:
- Add IP addresses of trusted computers to firewall exceptions.
- IN Kaspersky/Avast turn off "Firewall» for local network.
- IN Windows Defender Allow incoming connections for "File and Printer».
Completely disabling your antivirus is not recommended, as it reduces protection against network attacks.
Is it possible to play over a local network via Wi-Fi?
Yes, but:
- 🎮 For old games (Counter-Strike 1.6, Warcraft III) use Hamachi or ZeroTier.
- 🖥️ For new games (Minecraft, GTA V) a shared Wi-Fi network is sufficient (open ports in the router if necessary).
- 📶 To minimize lag, connect one of the PCs via cable (Ethernet).
If the game does not detect the second computer, check that:
- Both PCs are on the same subnet (for example,
192.168.1.x). - The firewall does not block the game.
- The game settings indicate the correct one. Host IP address.