How to Connect Two Computers via Wi-Fi: A Complete Guide

Creating a local area network between two or more devices is a fundamental task for any user who wants to share large files without using flash drives or cloud services. A modern operating system Windows offers flexible tools for setting up such a connection, but the parameters hidden behind complex menus are often confusing. Proper configuration allows not only data transfer but also printer sharing or even online gaming.

There are several connection scenarios: through an existing Wi-Fi router, when both devices are on the same network, or creating a direct computer-to-computer connection without a router. In both cases, the key is correctly configuring security profiles and network protocols. Ignoring basic rules IP addressing or a firewall may result in devices simply not "seeing" each other, despite an active wireless connection.

In this article, we'll examine both methods in detail, focusing on technical nuances often overlooked in standard instructions. You'll learn how to avoid address conflicts, properly configure sharing, and ensure the security of transmitted data. Understanding these processes will help you create a stable environment for work or play.

Preparing equipment and checking drivers

Before you begin software configuration, you must ensure that the equipment is physically ready for operation. Wireless adapter The network card must be working properly, and the drivers must be installed correctly. Network visibility issues are often caused by outdated network card software that doesn't support modern encryption protocols or operating modes.

Check the connection status in Device Manager. If the adapter icon displays a yellow exclamation point, the system is unable to communicate properly with the hardware. In this case, you should download the latest driver from the official website of the laptop or motherboard manufacturer, rather than relying on Windows' automatic installation.

Make sure both computers are within range of a strong signal if using a router. A weak signal can cause packet drops when transferring large amounts of data, which is critical for establishing a stable tunnel.

  • 📶 Check the Wi-Fi indicators on the laptop case or keyboard (often this is a combination of Fn + the key with the antenna).
  • 💾 Make sure that the drivers installed on both PCs are no older than 6-12 months.
  • 🔌 Disable VPN services during setup, as they may block local traffic.

⚠️ Attention: Some antivirus programs have a built-in firewall that blocks detection of new devices on the network by default. If you experience problems, temporarily disable third-party antivirus protection for diagnostic purposes.

It is also important to consider the frequency range your adapter operates on. Standards 802.11ac And 802.11ax Wi-Fi 5 and 6 operate primarily in the 5 GHz band, which provides high speed but has a shorter range than 2.4 GHz. 5 GHz is preferable for transferring gigabytes of data, but 2.4 GHz is better for a stable connection over a long distance.

📊 What type of connection do you plan to use?
Via a router (both on the same network)
Direct connection (without router)
Mobile hotspot
I don't know, I need to consult

Method 1: Creating a network via a Wi-Fi router

This is the most common and easiest method, requiring minimal effort. Both computers must be connected to the same wireless network. LANIn this case, the router acts as an intermediary, distributing IP addresses and managing data flows between devices.

The first step is to check your network type. By default, Windows assigns new connections to the "Public network" profile, which hides your computer from other devices for security reasons. You need to change this setting to "Private network" to enable discovery.

This can be done through the network settings in the Control Panel or through the modern Windows 10/11 settings. After changing the profile, the system will automatically open the ports required for the protocol to work. SMB (Server Message Block), which is responsible for file and printer sharing.

netsh interface show interface

This command will help you find out the exact name of your network connection if you decide to manage settings via the command line. Enter it in the terminal with administrator rights. The resulting name will be useful for fine-tuning your firewall rules.

☑️ Checking router settings

Completed: 0 / 4

It's also worth checking your router's DHCP settings. Make sure the address pool is large enough for both computers to receive unique IP addresses. If you're using static addresses, make sure they're in the same subnet, for example, 192.168.1.5 and 192.168.1.6 with a mask of 255.255.255.0.

Method 2: Direct Computer-to-Computer (Ad-Hoc) Connection

If you don't have a router handy, or want to create an isolated network for maximum speed and security, you can use Ad-Hoc technology. In modern versions of Windows, this feature has been transformed into creating a "Mobile Hotspot" or setting up a special connection profile.

One computer will act as the host (access point), and the other as the client. The host must have an active Wi-Fi adapter that supports monitor or master mode. This allows the device to broadcast the SSID to which the second computer will connect.

For manual configuration via the command line, use the utility netshThis method is more reliable than the graphical interface, as it allows you to specify precise channel parameters and security type.

netsh wlan set hostednetwork mode=allow ssid=MyDirectNetwork key=Password123

After entering the network start command (netsh wlan start hostednetwork) on the first PC, the second computer should find the "MyDirectNetwork" network in the list of available connections. Enter the password, and the connection will be established.

⚠️ Attention: With a direct connection, one of the computers may lose internet access if connection forwarding (ICS) isn't configured correctly. For purely local file sharing, this isn't a problem.

It's important to note that wireless adapter drivers must support network virtualization. Older card models may not function correctly in host mode, resulting in constant connection drops. In this case, it's best to use an external USB Wi-Fi adapter that supports modern standards.

What to do if the netsh command doesn't work?

If the system reports that the service is not running, check the status of the "WLAN AutoConfig" service in the services.msc menu. It should be in "Automatic" mode and running. Also, some drivers (especially older Realtek drivers) may block the creation of a virtual access point.

Setting up sharing and removing visibility

Even if you're successfully connected to the same network, computers may not be able to see shared folders. This is due to Windows security policy. You need to go to the Network and Sharing Center and select "Change advanced sharing settings."

There are several key features you should enable here. First, turn on network discovery. Second, enable file and printer sharing. Third, for home networks, you can disable password protection if you trust all devices within the perimeter, although for a corporate environment, this is optional. strongly not recommended.

After applying the settings, you may need to restart the discovery service. If the folders still don't appear in the network neighborhood, try accessing the computer directly using its IP address.

Parameter Recommended value Where to find
Network profile Private network Network parameters
Network discovery Included Additional sharing options
File sharing On Additional sharing options
Password protection Disabled (for home) All networks

To access resources, use Explorer and enter in the address bar \\192.168.1.X, where X is the address of the second computer. If a window opens asking for a username and password, enter the credentials of the remote PC user.

Troubleshooting and Firewall

The most common reason for failures when connecting computers is an aggressive policy Windows Defender Firewall or third-party antivirus software. The system may block incoming requests to SMB ports (445, 139), considering them a potential threat.

To check whether your firewall is blocking the connection, you can temporarily disable it for private networks. If the computers can "see" each other after this, the problem lies with the filtering rules. Don't leave the firewall disabled—it's better to create an exception.

You need to find the "File and Printer Sharing" rule and ensure it's enabled for the "Private" profile. It's also worth checking whether SMB 1.0 protocol support is enabled, although modern systems tend to use SMB 2.0 and 3.0 for security reasons.

  • 🛡️ Check your firewall's inbound rules.
  • 🔍 Make sure the Discovery Provider Host services are running.
  • 🔄 Restart the DNS Client service with the command ipconfig /flushdns.

⚠️ Attention: SMB version 1.0 is vulnerable to ransomware (like WannaCry). Enable it only when connecting to very old systems (Windows XP/2003); otherwise, use SMB 2/3.

Use the utility ping To check connectivity, enter in the command line ping 192.168.1.XIf you see the response "Reply from...," then the physical and data connection is working, and the problem lies in access settings or folder permissions.

Local connection security

When organizing data exchange, don't forget about security. A local network, especially one with disabled password protection, is potentially vulnerable if unauthorized access is gained. Use complex passwords for your wireless network. WPA3 or WPA2.

When transmitting sensitive data, consider using file-level encryption (e.g., password-protected archives or VeraCrypt), even if the network is considered trusted. This will provide an additional layer of protection against traffic sniffing.

Regularly update your router firmware and Wi-Fi adapter drivers. Manufacturers often patch vulnerabilities that allow attackers to access your local network via the wireless interface.

Do not use the "Make this PC discoverable" feature in public places (cafes, airports). This mode is intended solely for home or office environments where you control physical access to the hardware.

Why can't my computer see another computer on the network?

The most common cause is the "Public" network profile. Windows hides the PC in this mode. The detection service may also be disabled, or the antivirus software may be blocking it. Check the IP addresses: they should be on the same subnet.

How to find out the IP address of a second computer?

On the second computer, open the command prompt (cmd) and type ipconfigFind the "IPv4 Address" line for your wireless adapter. This is the address you need.

Is it possible to connect computers running different versions of Windows?

Yes, Windows 10, 11, 8.1, and even 7 can work on the same network. However, communication with Windows 7 may require enabling SMB 1.0 support on newer systems, which reduces security.

What speed will I get when connecting via Wi-Fi?

Actual speed depends on the Wi-Fi standard. For 2.4 GHz (802.11n), it rarely exceeds 20-30 Mbps. For 5 GHz (802.11ac/ax), speeds can reach 400-800 Mbps under ideal conditions, comparable to a gigabit cable.