Creating a local network between two computers via Wi-Fi — a task that arises when you need to exchange files, share a printer, or run online games without an internet connection. Many people mistakenly believe that a router is essential for this, but modern versions Windows 10/11 allow you to organize a direct connection (ad-hoc) or use built-in functions like Mobile hotspotIn this article, we'll cover all current methods—from manual configuration to automated solutions—and explain how to diagnose problems when computers can't see each other.
It is important to understand that a local Wi-Fi network between two devices has limitations: the data transfer speed will be lower than via cable (Ethernet), and connection stability depends on interference and distance. However, for one-time tasks—transferring large files, setting up a remote desktop, or testing network applications—this approach is quite sufficient. If you need a constant connection, it's better to consider an option with router or Powerline adapters.
1. Methods for organizing a local Wi-Fi network: which one to choose?
There are three main methods of connecting two computers Wi-Fi without a router. Each of them is suitable for different scenarios:
- 🔹 Ad-hoc network (Point-to-Point) is the classic method that works on all versions of Windows. It requires manual configuration of IP addresses and the network name. This is suitable for older PCs or if other methods fail.
- 📶 Mobile hotspot — a built-in Windows 10/11 feature that allows one computer to share Wi-Fi and another to connect to it. This is the easiest option for beginners.
- 🔧 Network bridge — used if one of the computers is already connected to the internet via Ethernet or another Wi-Fi connection and needs to share that connection. This method is more complex, but flexible.
The choice of method depends on your goals:
| Way | Difficulty of setup | Need internet? | Max. speed | Suitable for |
|---|---|---|---|---|
| Ad-hoc network | Average | No | Up to 54 Mbps (802.11g) | Old PCs, LAN gaming |
| Mobile hotspot | Low | No (but you can share) | Up to 300 Mbps (802.11n) | Fast file transfer |
| Network bridge | High | Yes (optional) | Depends on the underlying connection | Internet distribution + local network |
If you just need to transfer files or play an online game, it is optimal Mobile hotspotSuitable for older systems or specific tasks (such as hardware setup) ad-hoc. Network bridge This is relevant if one of the PCs already has Internet access and you want to share it.
2. Preparing computers before setting up the network
Before creating a local network, make sure both computers meet the minimum requirements:
- 🖥️ Hardware requirements:
- Both PCs must have Wi-Fi adapters (built-in or external). You can check their availability in
Device Manager(Win + X → Device Manager → Network Adapters). - If there is no adapter, you will need USB Wi-Fi module (For example, TP-Link TL-WN725N or ASUS USB-AC56).
- Both PCs must have Wi-Fi adapters (built-in or external). You can check their availability in
- 🔧 Software requirements:
- Operating system: Windows 7/10/11 (For ad-hoc will even do XP, but with limitations).
- Accounts with administrator rights on both PCs.
- Disabled firewalls or antiviruses (temporarily, for testing).
Also check if your adapters support the mode ad-hocTo do this:
- Open
Command line(Win + R → cmd → Enter). - Enter the command:
netsh wlan show drivers - Find the line
Hosted network support. If it is indicated thereYes, then the adapter supports Wi-Fi distribution.
☑️ Preparing to set up the network
⚠️ Attention: If one of the computers is using Windows 10/11 Home, some Group Policy settings may not be available. In this case, use Mobile hotspot or customize ad-hoc manually.
3. Method 1: Creating an ad-hoc network (point-to-point)
This method is suitable for Windows 7/10/11 and allows you to create a direct network between two devices without a router. The main drawback is the limited speed (up to 54 Mbps on standard 802.11g), but it works even on old PCs.
Instructions for main computer (which will distribute the network):
- Open
Command lineas administrator (Win + X → Terminal (Administrator)). - Enter the command to create the network (replace
MyWiFito the desired name and12345678for password):netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=12345678 keyUsage=persistent - Start the network:
netsh wlan start hostednetwork - Allow public access (if internet is needed):
- Go to
Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings. - Find an internet connection (eg.
Ethernet), right-click →Properties → Access. - Check the box
Allow other network users to share your Internet connectionand select the created network (Local Area Connection* X).
- Go to
For second computer:
- In the list of Wi-Fi networks, find the created network (
MyWiFi). - Connect by entering the password (
12345678(in the example). - Assign IP addresses manually (if automatic acquisition did not work):
- On the main PC:
IP 192.168.1.1, mask255.255.255.0. - On the second PC:
IP 192.168.1.2, mask255.255.255.0, gateway192.168.1.1.
- On the main PC:
⚠️ Attention: After rebooting the main PC, the networkhostednetworkwill shut down. To start it again, run the commandnetsh wlan start hostednetworkor create.bat-file with this command and place it in startup.
4. Method 2: Using Mobile Hotspot (Windows 10/11)
The easiest method that doesn't require the command line. Suitable for Windows 10 (version 1607 and later) And Windows 11. The connection speed is limited only by the capabilities of the Wi-Fi adapter (up to 300 Mbps on 802.11n).
Instructions:
- On the computer that will be distributing Wi-Fi, open
Settings → Network & Internet → Mobile Hotspot. - In the field
Sharing an Internet connectionselect a source (egEthernetorWi-Fi, if the PC is connected to another network). - Click
Changeand ask:- Network Name (
SSID): For example,PC-Hotspot. - Password: at least 8 characters (e.g.
SecurePass123).
- Network Name (
Mobile hotspot.PC-Hotspot) as to regular Wi-Fi.If Mobile Hotspot fails to turn on with the error "Failed to set up Mobile Hotspot", check if your Wi-Fi adapter supports the mode AP (Access Point)A list of supported adapters can be found on the Microsoft website or the device manufacturer's website.
Advantages of the method:
- 🔹 No manual IP configuration required.
- 🔹 Automatically assigns addresses via
DHCP. - 🔹 Easy to turn on/off with one button.
How do I share the Internet via a mobile hotspot if my primary connection is via Wi-Fi?
If your PC is connected to the Internet via Wi-Fi and you want to share it via a hotspot, follow these steps:
1. Open Command Prompt (Administrator).
2. Enter the command: netsh wlan set hostednetwork mode=allow.
3. Start the network: netsh wlan start hostednetwork.
4. In Control Panel → Network Connections Find your Wi-Fi connection, right-click → Properties → Access and allow sharing for Local Area Connection* X.
5. Return to Mobile hotspot and turn it on.
5. Method 3: Network bridge (for Internet sharing)
This method is suitable if one of the computers is connected to the Internet (for example, via Ethernet or 3G/4G modem), and you want to simultaneously create a local network and provide access to the World Wide Web. The setup is more complex, but the flexibility is greater.
Step-by-step instructions:
- On a computer with internet access, open
Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings. - Select two connections:
- The one through which the Internet goes (for example,
Ethernet). - The one through which Wi-Fi will be distributed (for example,
Wireless network).
- The one through which the Internet goes (for example,
Setting up the bridge.Limitations of the method:
- 🔸 Not all Wi-Fi adapters support bridge mode.
- 🔸 IP address conflicts are possible if the same range is used in the main network (e.g.
192.168.1.X). - 🔸 Internet speed will be lower due to double routing.
⚠️ Attention: If after creating a bridge the Internet disappears on the main computer, remove the bridge and check the settingsDNSSometimes manually installing DNS from Google helps (8.8.8.8And8.8.4.4) in the connection properties.
6. Setting up shared access to files and folders
Once the connection between the computers is established, you need to set up sharing so they can see each other's files and folders. To do this:
On the computer whose files you want to share:
- Right-click on the folder →
Properties → Access → Share. - Select a user
Alland pressAdd. - Set the resolution level (
ReadingorReading and writing). - Click
General access, then go to the tabSecurityand add a userAllwith the same rights.
On the second computer:
- Open
Conductorand enter in the address barIP address of the first PC(For example,\\192.168.1.1). - If you are prompted for login/password, enter the account details of the first PC (or create identical accounts on both devices).
If computers cannot see each other:
- 🔹 Check that both PCs are in the same working group (by default
WORKGROUP). You can change it inSystem Properties → Computer Name → Change. - 🔹 Turn on
Network discoveryAndFile and Printer SharingVNetwork and Sharing Center → Advanced Sharing Options. - 🔹 Disable your firewall or add an exception for
File and Printer.
7. Troubleshooting and troubleshooting
If your local network is not working, follow this checklist:
| Problem | Possible cause | Solution |
|---|---|---|
| Computers can't see each other. | Different subnets or incorrect IPs | Check the IP addresses (must be in the same range, eg. 192.168.1.X) |
| No access to shared folder | Invalid access rights or disabled SMB |
Turn on SMB 1.0 V Control Panel → Programs → Turn Windows features on or off |
| Mobile hotspot won't turn on | The adapter driver does not support AP |
Please update your driver or use ad-hoc |
| Low transmission speed | Interference or outdated Wi-Fi standard | Switch to the channel 5 GHz (if adapters support it) or use a cable |
To check the connection, use the commands:
- 🔹
ping 192.168.1.2(replace with the IP of the second PC) - availability check. - 🔹
ipconfig /all— view current network settings. - 🔹
net view— displaying computers on the local network.
If ping It works, but the folders are unavailable. The problem is in the sharing settings. If ping If it doesn't work, check your physical connection or IP settings.
8. Alternative ways to connect two computers
If your Wi-Fi connection is unstable or not working, consider alternatives:
- 🔌 Direct cable connection (Ethernet):
- Speed up to 1 Gbps (10–20 times faster than Wi-Fi).
- Needed crossover cable (or regular patch-cord for modern network cards with
Auto-MDI/MDIX). - The IP setting is similar ad-hoc (For example,
192.168.1.1And192.168.1.2).
- 📡 Bluetooth:
- Speed up to 3 Mbps (only for small files).
- Suitable for laptops with built-in Bluetooth 4.0+.
- Use the function
Send filein the context menu.
- 💾 Local area network via USB:
- Required USB cable with support
USB Networking(for example, for Samsung or Sony smartphones). - Speed up to 480 Mbps (theoretically), but in practice – 30–50 Mbps.
- Required USB cable with support
For maximum speed and stability we recommend cable connectionIf it's impossible to install a cable and Wi-Fi is unstable, try:
- 🔹 Use
5 GHzinstead of2.4 GHz(less interference). - 🔹 Bring the computers closer to each other (or use Wi-Fi repeater).
- 🔹 Update network adapter drivers.
Frequently Asked Questions
Is it possible to create a local network between a Windows PC and a Mac?
Yes, but with some nuances. Mac need to:
- Open
System Preferences → Sharing. - Turn on
File sharingand add a folder. - IN
ParametersAllow access for a guest account or a specific user.
On Windows connect to the shared folder Mac through \\Mac_IP_Address\folder_name (For example, \\192.168.1.3\Public).
Why is the file transfer speed over Wi-Fi so slow?
The reasons may be as follows:
- 🔸 An outdated standard is used
802.11g(max 54 Mbps). Solution: Switch to802.11nor802.11acin the adapter settings. - 🔸 The signal is weakened by interference. Solution: change the Wi-Fi channel to a less crowded one (use utilities like Wi-Fi Analyzer).
- 🔸 Files are fragmented. Solution: Archive them before transferring (for example, in
.zipor.rar).
To test the speed, use the utility iPerf or copy files via Total Commander - It shows the current transfer speed.
How to make the local network work after a reboot?
For ad-hoc networks:
- Create a file
start_hotspot.batwith the following contents:@echo offnetsh wlan start hostednetwork
pause - Place it in the folder
Autoload(shell:startupin the address barConductor).
For Mobile hotspot:
- Enable the option
Allow other devices to use my internet connectionin the hotspot settings. - Windows 10/11 saves hotspot settings after reboot, but the hotspot itself must be enabled manually.
Is it possible to play over a local network via Wi-Fi?
Yes, but with some reservations:
- 🎮 For most games (CS:GO, Minecraft, GTA V) it is enough that the computers are on the same network (it doesn’t matter whether via a router or a direct connection).
- 🔹 Launch the game on both PCs, then select the mode
LANorLocal area network. - ⚠️ For games with high ping requirements (e.g. Valorant or Fortnite) Wi-Fi connections can experience lag. In such cases, it's best to use a cable.
If the game does not detect the second computer:
- Check that your firewall is not blocking the game (add it to the exceptions).
- Make sure the computers' IP addresses are static and on the same subnet.
How to protect a local network from unauthorized connections?
If you are distributing Wi-Fi via Mobile hotspot or ad-hoc, use the following safety measures:
- 🔐 Set a complex password (at least 12 characters, with numbers and special characters).
- 🔄 Change your password regularly (for example, once a week).
- 📛 Hide the network name (
SSID) in the adapter settings (but this will complicate the connection of legitimate devices). - 🛡️ Turn it off
WPS(if supported by your adapter). - 🔗 Use
MAC filtering(allow connections only for specific devices).
For ad-hoc You can also limit the number of connected devices in the network using the command:
netsh wlan set hostednetwork maxclients=1
(Where 1 — maximum number of clients).