Creating a local network between two computers is a challenge faced by many users who want to share files without using flash drives or external storage devices. In today's digital world, where data volumes are growing exponentially, the need to quickly transfer gigabytes of information is becoming critical. Local area network It allows you to not only copy files, but also play online games, use a shared printer, or even control one PC from another remotely.
The most convenient way to organize such interaction is to use wireless technology. Wi-FiThis eliminates the need to run cables throughout an apartment or office, preserving the aesthetics of the interior and the mobility of devices. However, despite its apparent simplicity, the setup process often raises questions among users, especially when it comes to network profiles and access rights.
In this article, we'll cover all the details of connecting two computers via Wi-Fi, troubleshoot common errors, and set up stable data exchange. You'll learn how to properly configure the operating system so it "sees" the other device and how to secure your network from outside interference. Security and speed are the two pillars on which a proper home network setup is based.
Selecting the connection type and preparing the equipment
Before you begin setting up software, you need to decide on the architecture of your future network. There are two main scenarios: connecting via a router (infrastructure mode) and directly connecting computers (ad-hoc mode). In the vast majority of cases, users use router, as it provides a stable signal, internet access for all devices and automatic distribution of IP addresses.
If you have a router, make sure both computers are connected to the same wireless network. This is a fundamental requirement: the devices must be on the same network segmentCheck the indicators on the router and ensure that the Wi-Fi modules on both computers are active. Older laptops may require a physical switch or function keys.
If you don't have a router, you can create a direct computer-to-computer connection. This method requires more detailed manual IP address configuration, but it allows you to set up a network even in the field. However, it's important to keep in mind that transmission speed In Ad-hoc mode, the performance may be lower, and the range is limited by the line-of-sight distance between the adapters.
⚠️ Caution: When using public Wi-Fi networks (such as cafes and airports), computer discovery should be disabled. In such locations, your PC may become a target for hacker attacks, as the network profile is often automatically marked as "public."
For a successful connection, it's also important that both devices have up-to-date wireless adapter drivers installed. Outdated software can cause connection drops or prevent the computer from working in access point mode. You can check the driver status in Device Manager under "Network Adapters."
Setting up a network profile in Windows
The Windows operating system has built-in security mechanisms that, by default, hide your computer from other devices on the network. To connect two PCs, you need to change the network profile from "Public" to "Private." The private profile allows device discovery and file sharing. Without this step, computers simply won't see each other, even if they're on the same network.
You can change your network type through Windows settings. Go to the Start menu, select "Settings" (the gear icon), and open "Network & Internet." Depending on your OS version, you'll either need to look for "Status" or see the name of your Wi-Fi connection. Click on the connection properties and select the "Private" profile.
After changing the profile, the system will automatically apply a set of firewall rules allowing incoming connections for discovery services. This is a critical step often overlooked by beginners. If the profile remains "Public," all attempts to configure public access will be blocked at the security level.
It's worth noting that corporate networks have stricter security policies that may prohibit user profile changes. In a home environment, such restrictions typically don't exist. Ensure that the same profile change action is performed on both computers.
Configuring sharing settings
Once the network profile has been modified, you need to enable specific services responsible for visibility and access. To do this, find the "Network and Sharing Center" section in the Control Panel and select "Change advanced sharing settings." This is where the key settings are located. Windows settings, managing network interactions.
In the window that opens, you'll see several profiles: private, guest, and all networks. We're interested in the "Private (current profile)" section. Here, you need to enable the following options: "Turn on network discovery" and "Turn on file and printer sharing." It's also recommended to check the box next to "Allow Windows to manage HomeGroup connections."
Pay special attention to the "All Networks" section. This is where you'll find the important "Password-protected sharing" setting. If you want to ensure that only users with the login and password for the account on this PC can access your files, leave this feature enabled. If you're on a trusted home network and want easier access, you can disable the protection, but this will reduce your security.
| Parameter | Recommended value (Home) | Recommended value (Office) | Impact on safety |
|---|---|---|---|
| Network discovery | Included | Included | Low (visibility only) |
| File sharing | Included | Included | Average (depending on rights) |
| Password protection | Disabled (for convenience) | Included | High (requires authorization) |
| Data encryption | 128-bit | 256-bit | Critical (traffic protection) |
Be sure to click the "Save Changes" button at the bottom of the page, otherwise all settings will be reset when you close the window. The system may then require confirmation via User Account Control (UAC).
Expanding capabilities: Shared folders and resources
Now that the network is configured, you need to tell the system which resources you want to share. Simply enabling the features isn't enough—you need to select specific directories. Create a new folder or select an existing one, right-click it, and go to "Properties."
In the window that opens, switch to the "Sharing" tab and click "Advanced Settings." Check the "Share this folder" box. Here you can also specify the resource name that the second computer will see. This name may differ from the actual folder name on the disk.
Pay special attention to the "Permissions" button. By default, access is often read-only. If you plan to do more than just copy files, on this computer, but also change or delete them With it, you need to select the "Everyone" group (or a specific user) and check the "Full access" box.
☑️ Folder setup checklist
There's also a quick way to share a folder using the "Sharing" tab (without the word "advanced"), where you can select a specific user from the list and click "Add." This method is more intuitive for beginners, as it immediately shows who exactly has access to the resource.
Connecting to a network drive and searching for devices
Once the settings are complete on both computers, you can test the connection. Open File Explorer and find "Network" in the left navigation panel. If everything is correct, the second computer should appear there after a few seconds. If you see a blank window or an error instead of the names, try entering the IP address of the target computer in File Explorer's address bar.
You can find out the IP address by launching the command line (cmd) and entering the command ipconfigYou are interested in the "IPv4 address" line. Enter the address in the format \\192.168.1.XX (where XX is the address of the second PC) often helps to bypass problems with names on the local network.
For easy, ongoing use, you can map a network folder as a network drive. This will make it accessible through "My Computer" with a dedicated drive letter (e.g., Z:). To do this, right-click "This PC," select "Map network drive," and specify the drive letter and path to the shared folder.
⚠️ Note: IP addresses assigned by the router via DHCP may change after a device reboot. If the network drive stops working, the target computer's address may have changed. The solution is to configure a static IP in the TCP/IPv4 protocol properties.
The first time you connect, the system may ask for credentials. Enter the login and password for the user account on the computer where the folder is located. If there is no password, leave the field blank, but make sure the account on the remote computer doesn't require a password to log in.
Diagnosing problems and troubleshooting
Despite careful configuration, sometimes situations arise where computers cannot see each other. One common cause is a disabled service, "Connect Now Discovery Resource Publisher" or "Discovery Provider Host." Check their status by entering the command in the Start menu. services.msc.
Problems may also be related to antivirus software. Third-party firewalls often block local connections, considering them suspicious. Try temporarily disabling the antivirus on both computers and testing the connection. If the problem is resolved, add your local network to the firewall's exceptions.
Another important aspect is the SMB protocol version. In newer versions of Windows (10 and 11), SMB 1.0 is disabled by default for security reasons, but it may be necessary for communication with older devices or NAS drives. For modern PCs, version 2.0 or 3.0 is sufficient and is enabled by default.
What to do if the yellow triangle is on?
If you see a device with an exclamation mark in the list of networks, try updating the network adapter driver through the Device Manager or resetting the network settings using the netsh winsock reset command in the command prompt as administrator.
In some cases, simply restarting the Print Spooler service or completely rebooting the router helps. The network discovery cache may contain invalid data that prevents devices from displaying correctly in the neighbor list.
Questions and Answers (FAQ)
Is it possible to connect two computers via Wi-Fi without a router?
Yes, this is possible by creating a computer-to-computer (Ad-hoc) network. In Windows 10 and 11, this feature is implemented through Mobile Hotspot or the command line, but requires manual IP address configuration on both devices for proper operation.
Why is the second computer not visible on the network, even though the Wi-Fi is shared?
Most likely, the network profile on one of the devices is set to "Public," which is blocking detection. Also, check if "Network discovery" is enabled in the advanced sharing settings and that your antivirus isn't blocking the connection.
What is the maximum file transfer speed over Wi-Fi?
Speed depends on the Wi-Fi standard (n, ac, ax) and distance. The 802.11n standard delivers speeds of approximately 30-50 Mbps, while 802.11ac (Wi-Fi 5) and 802.11ax (Wi-Fi 6) can deliver speeds of up to 100 Mbps or more, comparable to a wired gigabit connection.
Do I need the same Windows password on both computers?
No, passwords can be different. However, when connecting to a shared folder, the system will prompt you for the login and password of the account under which the resource was created on the remote computer. To simplify matters, you can create identical accounts on both computers.