Why is a Wi-Fi network between two computers convenient?
Creating a local network via Wi-Fi allows you to share files, play online games, or use shared devices without the need for wires or additional equipment. This is especially useful when you don't have a router or cable handy but need to transfer data quickly.
This connection method is suitable for home use, small offices, or temporary workgroups. For example, you can sync projects between laptops, run a multiplayer game, or even share the internet from one PC to another. The main thing is to configure the connection correctly to avoid security and speed issues.
In this article, we'll look at three basic methods for setting up a Wi-Fi network between two computers: ad-hoc network, bridge mode And using a router as an intermediaryEach has its own pros and cons, so you can choose the best option for your needs.
Method 1: Ad-hoc network (Wi-Fi Direct) - fast and without a router
Ad-hoc network (or Wi-Fi Direct) is a temporary connection created directly between two devices. It doesn't require a router, but it has speed and device-connection limits.
This method is ideal for one-time file transfers or online gaming. However, please note that ad-hoc networks are not supported by some modern versions of Windows and macOS without additional drivers.
- ✅ No router or cable required
- ✅ Quick setup (3-5 minutes)
- ⚠️ Limited speed (up to 54 Mbps in 802.11g standard)
- ⚠️ Not all devices support ad-hoc mode
To create an ad-hoc network in Windows 10/11, follow these steps:
- Open
Control Panel → Network and Sharing Center. - Select
Setting up a new connection or network → Setting up a wireless ad hoc network. - Set the network name (SSID), security type (
WPA2-Personal) and password. - Connect the second computer to the created network.
☑️ Ad-hoc network check
⚠️ Attention: On macOS, ad-hoc networks are created throughTerminalusing the commandnetworksetupIn some versions of macOS, this mode is disabled by default.
Method 2: Bridge mode (Wi-Fi Bridge) - for a stable connection
If you need a constant connection with high speed, it is better to use bridge modeIn this case, one computer acts as an access point, and the other connects to it as to a regular router.
This method supports higher speeds (up to 300 Mbps in standard 802.11n) and allows you to connect multiple devices. However, setting it up will require additional software or support for the mode. Hosted Network in Windows.
| Parameter | Ad-hoc network | Bridge mode |
|---|---|---|
| Speed | Up to 54 Mbps | Up to 300 Mbps |
| Number of devices | 2 | Up to 8 |
| Difficulty of setup | Low | Average |
| Support for modern operating systems | Partial | Full |
To set up a bridge in Windows:
- Launch
Command lineon behalf of the administrator. - Enter the command:
netsh wlan set hostednetwork mode=allow ssid=MyBridge key=12345678 - Activate the network:
netsh wlan start hostednetwork - Enable Internet Sharing in
Connection properties.
Method 3: Using a router is safe and secure
The most stable way to set up a network between two computers is to use a regular Wi-Fi routerThis solution is suitable for continuous use, as it provides high speed, security, and the ability to connect additional devices.
To do this, both computers must be connected to the same Wi-Fi network. Then you need to set up file and printer sharing via Control Panel → Network and Internet → Network and Sharing Center.
- ✅ Maximum speed (depending on the router)
- ✅ Support for all modern devices
- ✅ Internet and printer sharing
- ⚠️ Additional equipment required
To share a folder:
- Right-click on the folder →
Properties → Access. - Select
Shareand specify the users. - Set access rights (read/write).
Setting up IP addresses: static vs. dynamic
For the network to work correctly, both computers must have the correct settings. IP addressesBy default, they are assigned automatically through DHCP, but sometimes it is better to set them manually.
Static IP addresses are recommended for servers, online games, or if automatic assignment is unstable. For example, for an ad-hoc network, you can use addresses 192.168.1.1 And 192.168.1.2 with a mask 255.255.255.0.
To set a static IP in Windows:
- Open
Settings → Network & Internet → Wi-Fi → Configure adapter settings. - Select your connection →
Properties → Internet Protocol Version 4 (TCP/IPv4). - Please enter the IP address, subnet mask and default gateway.
⚠️ Attention: If you are using a router, make sure that the static IP addresses do not conflict with its DHCP pool (usually 192.168.0.100-192.168.0.200).
Checking the connection and troubleshooting
After setting up the network, you need to check its functionality. The easiest way is to use the command ping:
ping 192.168.1.2
If the packets are not delivered, check:
- 🔌 Is the password entered correctly?
- 📡 Availability of Wi-Fi adapter drivers
- 🔒 Firewall settings (disable it temporarily for testing)
- 🔄 Reboot both computers
If the network is working but files are not transferring, make sure that:
- 📁 The folders are actually shared
- 👤 Users have access rights
- 🔐 Antivirus does not block the network connection
What to do if Wi-Fi Direct doesn't work?
On some laptops, Wi-Fi Direct is disabled in the BIOS. Go to the BIOS settings (usually by F2 or Del at boot) and enable the option Wireless LAN or Wi-Fi Direct.
Home Wi-Fi Network Security
Even if the network is temporary, you shouldn't neglect security. Use complex passwords (at least 8 characters with numbers and special characters) and enable encryption WPA2 or WPA3.
If you are transmitting sensitive data, consider using VPN or SSH tunnelAlso, turn off the network when it is not needed to avoid unauthorized access.
In ad-hoc networks, the password is transmitted in clear text upon first connection, so do not use them to transmit sensitive data in public places.
FAQ: Frequently asked questions about setting up a Wi-Fi network between PCs
Is it possible to create a network between Windows and macOS?
Yes, but for this to happen both computers must support the same protocol (for example, SMB for file sharing). On macOS, you may need to enable support SMB V System Preferences → Sharing.
Why is file transfer speed slow?
This may be due to:
- Using an outdated Wi-Fi standard (802.11g instead of 802.11ac)
- Interference from other networks (try changing the channel in your router settings)
- Background download of updates or torrents
Should I disable my firewall?
No, it's enough to add an exception for the local network. In Windows, this is done through Windows Defender Firewall → Advanced settings → Inbound rules.
Is it possible to play online games over such a network?
Yes, but there are delays (ping) will be higher than with a wired connection. For gaming, it's better to use bridge mode or a router with support QoS (traffic prioritization).