How to connect two laptops via Wi-Fi through a router

Organizing local data exchange between devices is a basic skill that significantly simplifies work on a home network or small office. When you don't have a flash drive handy and the file you need to transfer is several gigabytes, the most effective solution is a direct connection between computers via a router. This allows you to transfer data at the maximum speed supported by your wireless equipment, without relying on external cloud services.

Modern operating systems have built-in mechanisms for discovering neighboring devices, but default security settings often block direct communication. Users may encounter a situation where computers see the router but are unable to see each other. In this guide, we'll cover the technical nuances of this setup. discovery protocols and firewall rules that will ensure a stable communication channel.

The setup process requires attention to detail, as even a slight mismatch in network profile types can lead to connection errors. We'll cover the steps from verifying the physical connection to setting up shared folders so you can seamlessly access resources from both machines. The key to success is that both laptops are on the same IP subnet, which is usually achieved automatically when connected to the same router.

Checking basic connectivity and IP addressing

The first step should always be verifying the physical connection. Both laptops must be connected to the same wireless interface on the router. It doesn't matter whether you're using the 2.4 GHz or 5 GHz band, as long as the devices are on the same logical network segment. If one laptop is connected to the guest network and the other to the main network, a direct connection will not be established.

Make sure the network adapter is enabled on both devices and is functioning correctly. In the operating system Windows This can be checked through the Device Manager or Network Control Panel. The absence of a yellow triangle on the Wi-Fi icon indicates that the drivers are working properly and the signal is strong enough.

Next, you need to check the IP addresses assigned by the router to each laptop. They should differ only in the last segment, and the first three numbers must match. To view the current settings, use the command line by entering ipconfigIf the addresses begin with 169.254.xx, this means that the router's DHCP server did not respond, and automatic address distribution did not work.

⚠️ Note: Some corporate or hotel networks may have Client Isolation enabled. This feature prevents devices connected to the Wi-Fi network from communicating with each other, allowing only internet access.

Compare the obtained data in the table below to ensure that the addressing is correct:

Parameter Laptop A (Example) Laptop B (Example) Status
IP address 192.168.1.15 192.168.1.22 True (one subnet)
Subnet mask 255.255.255.0 255.255.255.0 Correct (matches)
Main gateway 192.168.1.1 192.168.1.1 Correct (one router)
DNS 192.168.1.1 8.8.8.8 Acceptable
📊 How far are laptops from the router?
In one room
In the neighboring rooms
On different floors
One is close, the other is far away

Setting up a network profile and discovery

operating system Windows By default, new connections are considered public, which means maximum security and privacy from other devices. For laptops to "see" each other, you need to change the network profile from "Public" to "Private." This tells the system that you're in a trusted environment, such as your home.

You can change the network type through the Wi-Fi settings. Click the wireless connection icon, select the properties of your current network, and in the "Network Profile" section, switch the radio to "Private." The system will then apply the new rules. firewall, allowing incoming connections for device discovery.

The next step is to enable sharing features. In Control Panel, under "Network and Sharing Center," select "Change advanced sharing settings." Here, you need to enable network discovery and file and printer sharing for the current profile.

It's also recommended to disable password protection for sharing if you're on a completely secure home network and want to simplify the connection process without having to enter your credentials each time. However, keep in mind that this reduces the security level of your local network.

Setting up shared access to folders and drives

Once the network infrastructure is configured, you need to determine which resources will be available to the second laptop. You can share a single folder, an entire drive, or even a connected USB drive. To do this, right-click the desired object and select "Properties."

Go to the "Access" tab and click "Advanced." Check "Share this folder." In the "Permissions" menu, you can fine-tune permissions for the "Everyone" group or specific users: allow or deny reading, editing, and full access to files.

  • 📁 Read — the user will only be able to open and copy files, but will not be able to delete or edit them.
  • ✏️ Modify - editing existing files and creating new ones is allowed, but deletion is restricted.
  • 🔓 Full access - the user receives full rights, including the ability to delete any data in the folder.

It's important to note that with password protection enabled, accessing the shared folder will require entering the username and password of the user account that owns the resource on the first laptop. Ensure that identical accounts with identical passwords are created on both devices; this often resolves authorization issues.

⚠️ Note: The shared folder settings interface may vary depending on your Windows version (10 or 11) and system updates. If you can't find the setting, use the search in Control Panel or check Microsoft Help for up-to-date screenshots.

Direct connection by IP address

Sometimes automatic discovery doesn't work correctly, and computers don't appear in the network neighborhood. In this case, the most reliable method is to connect directly by IP address. You don't need to search for the computer's name in the list; its numerical address is sufficient.

Open File Explorer on the second laptop. In the address bar, enter two backslashes and the IP address of the first laptop. The command format should look like this:

\\192.168.1.15

Press Enter. If the firewall and network profile settings are correct, a window will open listing all shared resources available on the remote machine. You'll see folders, printers, and mapped drives that were previously shared.

☑️ Checking IP connection

Completed: 0 / 1

For easy access, you can create a shortcut to this address on your desktop. This will eliminate the need to manually enter the numeric code each time. Simply right-click on the desktop, create a new shortcut, and paste the path to the network resource.

Using Shared Folders and HomeGroup

Older versions of Windows had a HomeGroup feature that made setting up a home network much easier. However, in current builds Windows 10 And Windows 11 It has been discontinued in favor of more flexible, but slightly more complex, access management tools. The focus now shifts to the standard shared folder mechanism and OneDrive.

The system offers a special "Shared" folder, which is accessible by default to all computer users. To enable network access, go to the sharing settings and enable the corresponding option. Files placed in this folder are automatically visible to other devices on the network.

An alternative is to use cloud synchronizers such as OneDrive, Google Drive or DropboxWhile this isn't technically a direct Wi-Fi connection through a router (data goes through a server), in a local network with a good internet connection, it's often faster and easier to set up, as it doesn't require access rights or a firewall.

Why did HomeGroup disappear?

The HomeGroup feature was removed from Windows 10 (version 1803) and Windows 11 because Microsoft considered it redundant and less secure than modern authentication methods and cloud services.

Solving visibility and access issues

The most common problem when connecting two laptops is the lack of visibility into the network environment. Even with the correct IP addresses, the computers may ignore each other. This is often due to the discovery service or the network adapter's power saving settings.

Check that the Connect Now Discovery Resource Publishing and Remote Access Connection Manager services are enabled. These services should be in the "Running" state and have a startup type of "Automatic." You can find them by entering the following command in the Start menu: services.msc.

It's also worth paying attention to your antivirus software. Third-party antivirus programs often have their own built-in firewall, which can block local connections even if the standard Windows firewall is configured correctly. Try temporarily disabling network protection in your antivirus for diagnostic purposes.

  • 🔍 Make sure both laptops are using the same workgroup (WORKGROUP by default).
  • 🔍 Check if network discovery is disabled in your router settings.
  • 🔍 Restarting both laptops and the router often solves DNS and NetBIOS caching issues.

⚠️ Important: If you disable your antivirus or firewall for diagnostic purposes, remember to restore the settings after testing. Unprotected network operation is only permissible for short periods of time in an isolated environment.

If none of these methods help, try updating your wireless adapter drivers. Visit your laptop or Wi-Fi chipset manufacturer's website and download the latest software. Old drivers may not correctly support modern encryption standards and discovery protocols.

Frequently Asked Questions (FAQ)

Is it possible to connect laptops via Wi-Fi without a router?

Yes, this is possible using Wi-Fi Direct technology or by creating a virtual hotspot on one of the laptops. In this case, one laptop broadcasts the Wi-Fi, and the other connects to it as a regular network. The transfer speed will depend on the power of the adapter on the broadcasting device.

Why is file transfer so slow?

Speed ​​may be limited by the Wi-Fi band (2.4 GHz is significantly slower than 5 GHz), distance to the router, interference, or channel congestion from neighboring networks. Speed ​​also depends on the performance of the hard drives in both laptops.

Is it safe to open full disk access?

On a home network with a strong Wi-Fi password, the risks are minimal. However, in public places or offices, full access to the system drive is strictly not recommended, as it allows an attacker to gain control of the system.

How do I turn off sharing after use?

To disable this feature, go to the shared folder's properties, click "Advanced Settings," and uncheck "Share." It's also recommended to reset the network profile to "Public" if you're no longer in the trusted zone.

Do you need a static IP for permanent operation?

For occasional connections, a dynamic IP address is sufficient. If you plan to access the same laptop on a regular basis, we recommend setting up a static IP address in the IPv4 protocol properties or reserving an address in the router's DHCP settings so it doesn't change after a reboot.