Establishing a direct wireless connection between two computers without a router is a task that arises in a variety of situations, from transferring large files to organizing multiplayer games or remote control. Despite the apparent complexity, modern versions Windows 10/11 Offer built-in tools for such configuration, eliminating the need for additional hardware. The key is to choose the right method based on your goals and the technical capabilities of your devices.
In this article we will look at three main ways of organizing Wi-Fi networks between PCs: through access point (hosted network), using Wi-Fi Direct and through ad-hoc networksEach method has its own nuances: in some cases, support for certain wireless communication standards will be required (802.11a/n/ac), and in some cases, you'll have to manually configure IP addresses. We'll walk through each step in detail, highlighting common errors and offering solutions for when the connection fails.
Before you begin, make sure both computers are equipped with Wi-Fi adapters (built-in or external) and are located in the area of confident signal reception (up to 10-15 meters (No obstacles). If you plan to transfer files, prepare shared folders in advance—this will save time during the setup phase.
Method 1: Creating an access point (Hosted Network) on Windows
This method is suitable if one of the computers will act as a virtual router, distributing the Internet or providing communication between devices. The main advantage is the ease of setup and support by most modern adapters. However, not all Wi-Fi modules support the regime hosted network, so please check compatibility first.
To start the hotspot, open Command prompt as administrator and execute two commands in sequence:
netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=12345678
netsh wlan start hostednetwork
Here MyWiFi — the name of your network (you can replace it with anything), and 12345678 — password (minimum 8 characters). After running the second command, a new wireless connection should appear on the second computer. If it doesn't, check if it's enabled. Wi-Fi adapter and whether it supports this mode.
- 🔧 Checking hosted network support: Enter the command
netsh wlan show driversand find the lineHosted network supportIf it's thereYes- your adapter fits. - 📡 Internet distribution: To allow the second computer to access the network, go to
Network and Sharing Center → Change adapter settings, find an internet connection (for example,Ethernet), right-click →Properties → Accessand allow use forLocal Area Connections* X(where X is the number of your hosted network). - ⚡ Energy saving: Disable power saving mode for your Wi-Fi adapter in
Device Manager, otherwise the connection may be broken.
⚠️ Attention: If the access point does not start automatically after rebooting, create.bat-file with commandnetsh wlan start hostednetworkand add it to startup. Some antivirus programs (for example, Kaspersky) may block such a connection - temporarily disable network protection.
Is Wi-Fi enabled on both PCs?
The adapter supports hosted network (checked via netsh)|
The network password must be at least 8 characters long|
Airplane mode is disabled on the main PC-->
Method 2: Using Wi-Fi Direct for direct connection
Wi-Fi Direct — is a technology that allows devices to connect directly without an intermediary (router). It is supported by most modern adapters (802.11n/ac/ax) and provides high data transfer speeds (up to 1 Gbps (under ideal conditions). The main advantage of this method is that there is no need to manually configure IP addresses.
To activate Wi-Fi Direct on Windows:
- Open
Settings → Network and Internet → Wi-Fi. - Click
Additional optionsand turn on the optionWi-Fi Direct(if it is not there, your adapter does not support the technology). - On the second computer, in the list of available networks, find the name of the first PC (usually it matches the name of the device in the system) and connect.
Once connected, both computers will receive IP addresses automatically via DHCPTo check the connection, open a command prompt and run ping [IP address of the second PC]If the packets arrive without loss, the connection is established successfully.
| Parameter | Hosted Network | Wi-Fi Direct |
|---|---|---|
| Required adapter support | Hosted network (not all adapters) | Wi-Fi Direct (most modern ones) |
| Maximum speed | Up to 300 Mbps (802.11n) | Up to 1 Gbps (802.11ac) |
| IP settings | Manual or DHCP | Automatic (DHCP) |
| Internet distribution support | Yes | No |
⚠️ Attention: Some laptops (eg. Dell Latitude or HP EliteBook) can block Wi-Fi Direct via corporate BIOS policies. In this case, try updating the adapter driver or use alternative methods.
Method 3: Setting up an ad-hoc network (an outdated but working method)
Ad-hoc networks - This is a classic point-to-point method of connecting devices, which worked back in Windows XPIt is now considered obsolete, but may be useful if your adapters do not support it. hosted network or Wi-Fi DirectThe main disadvantage is the low speed (up to 54 Mbps according to standard 802.11g) and the need for manual IP configuration.
To create an ad-hoc network:
- Open
Control Panel → Network and Sharing Center → Set up a new connection. - Select
Setting up a wireless computer-to-computer network(in Windows 10/11 this item may be missing - then use the command line). - Set the network name (
SSID), security type (WPA2-Personal) and password. - On the second computer, connect to the created network.
Once connected, you'll need to manually assign IP addresses. On the first PC:
IP address: 192.168.1.1
Subnet mask: 255.255.255.0
On the second PC:
IP address: 192.168.1.2Subnet mask: 255.255.255.0
Default gateway: 192.168.1.1
To check the connection, use the command ping 192.168.1.2 from the first computer. If the ping works, the network is configured correctly.
What to do if ad-hoc network is not showing up in Windows 10/11?
In modern versions of Windows, the interface for creating ad-hoc networks is hidden. An alternative method is to use the command line:
netsh wlan set hostednetwork mode=allow ssid=AdHocNet key=password123
netsh wlan start hostednetwork
This will create a network in hosted network mode, which functionally replaces ad-hoc.
4. Setting up shared access to files and folders
Once the connection between the computers is established, the next task is to organize the data exchange. To do this, you need to configure public access to folders. In Windows, this is done through the folder properties:
- Right-click on the folder →
Properties → Access. - Click
Shareand select a userAll(or specify the specific user name of the second PC). - On the tab
SecurityclickChangeand add a userAllwith rightsReading and writing.
To access a shared folder from another computer, open Conductor and enter in the address bar \\[IP address of the first PC] (For example, \\192.168.1.1). If access requires login/password, use the account details of the first computer.
- 🔐 Safety: Avoid using the account
Guest— it's often disabled by default in Windows 10/11. Instead, create a local user with limited rights. - 📂 Transfer speed: To speed up copying large files, disable
TCP/IP autoconfigurationin the registry (parameterTcpAckFrequency). - 🔄 Synchronization: To automatically synchronize folders, use utilities like FreeFileSync or Resilio Sync.
⚠️ Attention: If you receive an error when connecting to a shared folder0x80070035("Network path not found"), check if the protocol is enabledSMB 1.0(although its use is not recommended for security reasons). Alternatively, turn onSMB 2.0+throughControl Panel → Programs and Features → Turn Windows features on or off.
5. Troubleshooting connection issues
Even with proper setup, the connection may not work due to software or hardware limitations. Here are the most common issues and how to fix them:
| Problem | Possible cause | Solution |
|---|---|---|
| The network is not displayed on the second PC. | Incompatible Wi-Fi standards (e.g. 5 GHz vs 2.4 GHz) | Set up a 2.4 GHz access point or update the adapter driver |
| There is a connection, but there is no access to files | Firewall blocks SMB ports (445) | Add a file sharing exception in Windows Firewall |
| Low data transfer rate | Interference from other networks or an outdated standard (802.11g) | Switch to a less crowded channel or update your adapter. |
| The connection drops after a few minutes. | Power saving mode turns off Wi-Fi | Turn off power saving for the adapter in Device Manager |
If none of the methods worked, check:
- 🔌 Hardware compatibility: Make sure both adapters support at least the standard
802.11n. Old devices (802.11b/g) may not be visible to modern networks. - 🛡️ Antivirus software: Avast, ESET NOD32 and other antivirus programs often block non-standard network connections. Add the computers' IP addresses to the exceptions.
- 📶 Channels and frequencies: In densely populated areas the network
2.4 GHzmay overlap. Try setting the channel manually (for example,1or11) throughnetsh wlan set hostednetwork channel=1.
6. Alternative programs for connecting a PC via Wi-Fi
If Windows' built-in tools aren't suitable, you can use third-party utilities. They offer more flexible settings and often resolve compatibility issues.
- 🌐 Connectify Hotspot: A paid program with a trial period that allows you to distribute the Internet and create secure networks. Supports
WPA3. - 🔗 Virtual Router PlusA free, open-source utility for creating a hosted network. Works on most adapters.
- 🎮 Radmin VPN: A solution for organizing a virtual network between computers, even if they are located in different local networks (via the Internet).
- 📁 D-LANA program for fast file transfer over Wi-Fi without complicated settings. It uses a direct data transfer protocol.
When choosing a program, pay attention to:
- Support for your Wi-Fi adapter (check on the developer's website).
- Encryption type — give preference
WPA2/WPA3. - Presence of advertising or restrictions in free versions.
⚠️ Attention: Some programs (eg Baidu WiFi Hotspot) may install additional software or change browser settings. Always download software from official websites and carefully read the installation instructions.
7. Optimize your connection for gaming and streaming
If you are setting up a network for online games (For example, Minecraft, Counter-Strike) or video transmission (OBS, VLC), standard settings may cause delays (ping) or packet loss. To improve performance:
- Disable background apps: Close torrents, cloud synchronizers (Google Drive, Dropbox) and instant messengers that consume traffic.
- Set up traffic priority: IN
Task Manager(tabNet) limit bandwidth for unnecessary processes. - Use a wired connection for the host: If one of your computers is connected to the router via a cable, share the Wi-Fi connection from it—this will reduce latency.
- Reduce MTU: To reduce packet fragmentation, install
MTU=1400via command:netsh interface ipv4 set subinterface [ID] mtu=1400 store=persistent(Where
[ID]— your Wi-Fi connection number, you can find it out throughnetsh interface ipv4 show subinterfaces).
To test the connection quality, use the utility PingPlotter or the command:
ping -n 50 192.168.1.2
If packet loss exceeds 5%, try:
- 📶 Switch to a less busy channel (
5 GHzpreferable for games). - 🔌 Replace the USB extension cable for the external adapter (poor contact degrades the signal).
- 🔄 Disable
QoSin the adapter settings (tabAdditionallyVDevice Manager).
FAQ: Frequently asked questions about setting up Wi-Fi between PCs
Is it possible to connect a Windows computer and a Mac via Wi-Fi?
Yes, but it's better to use it for this Wi-Fi Direct or third-party programs like Radmin VPNOn macOS, enable General access V System Preferences → Sharing and select Public Internet Via Wi-Fi. On Windows, connect to the network shared by your Mac as if it were a regular access point.
Why is file transfer speed via Wi-Fi lower than via cable?
Wireless connections are subject to interference and are limited by the standard of your adapter. For example:
802.11n(2.4 GHz) - up to150 Mbps(actually ~50-70 Mbit/s).802.11ac(5 GHz) - up to867 Mbps(actually ~200-400 Mbit/s).
To speed things up, go to 5 GHz, reduce the distance between the PCs or use USB 3.0 Wi-Fi adapter (For example, ASUS USB-AC68).
How to share internet from a laptop to a second computer via Wi-Fi?
Use hosted network (described in the first method) and don't forget to open shared access to the Internet through Connection Properties → AccessIf the internet still doesn't work, check:
- Connect to the Internet on the main PC (for example, via
Ethernetor4G modem). - Firewall settings (allow
Internet Connection Sharing).
Is it possible to use a smartphone as a bridge to connect two PCs?
Yes, if your smartphone supports it. modem mode or Wi-Fi repeater. For example:
- On Android: turn on
Access pointand connect both computers to it. - On iPhone: activate
Modem modevia Wi-Fi or Bluetooth.
The downside of this method is the additional delay and speed limitation (especially when using Bluetooth).
How to protect the connection between computers from outsiders?
Use the following measures:
- Set a complex password (at least
12 characterswith numbers and special characters). - Turn it off
WPSin the adapter settings (if supported). - Enable filtering by
MAC addresses(manually specify allowed addresses in the hosted network settings). - Use
WPA3instead ofWPA2(if adapters support it).
For maximum security, please set up VPN server on one of the PCs and connect via OpenVPN or WireGuard.