How to connect two laptops via Wi-Fi

Creating a local connection between two computing devices without a router is a task that may be necessary for quickly transferring large amounts of data or collaborating without internet access. Modern operating systems make it quite easy to set up such a connection using the built-in capabilities of a wireless adapter. You won't need to lay cables or purchase additional equipment; all you need is a working device. Wi-Fi module in each of the devices.

The setup process may seem complicated at first glance, but by following a specific procedure, you can connect your devices into a single network in just a few minutes. The main method we'll discuss is based on the ad-hoc wireless connection feature, also known as a virtual hotspot or ad-hoc mode. This solution is ideal for offices, classrooms, or temporary workspaces.

It's worth noting that connection stability directly depends on the quality of the drivers and the distance between the devices. Before starting the procedure, make sure both laptops have the latest drivers installed. network card and the detection feature is enabled. In this article, we'll cover all setup steps for the Windows operating system, as it's the most common platform for such tasks.

Preparing equipment and checking drivers

The first step to a successful connection is to thoroughly check the technical condition of both laptops. Make sure the wireless adapters are activated and functioning correctly. Connection problems are often caused by outdated software that controls the wireless network. radio module.

Open Device Manager on both computers and find the section for network adapters. If there's a yellow exclamation mark next to the name of your Wi-Fi device, the driver is malfunctioning or missing. In this case, you need to download the latest software from the laptop manufacturer's official website.

⚠️ Note: Some laptop models, especially gaming or business models, may have a physical switch or function key (e.g., Fn+F2) to enable wireless connectivity. Make sure the Wi-Fi indicator is on before accessing software settings.

It's also important to ensure both devices are within the same line of sight. Walls, metal structures, and a running microwave oven can significantly weaken the signal, resulting in connection drops or low data transfer rates. The optimal testing distance is considered to be 3-5 meters without obstructions.

To check the driver version, follow these steps:

  • 📌 Right-click on the Start button and select Device Manager.
  • 📌 Expand the "Network adapters" branch and find the device labeled "Wireless" or "Wi-Fi."
  • 📌 Right-click, select "Properties" and go to the "Driver" tab.
  • 📌 Compare the date and version with those available on the manufacturer's website.

☑️ Checking connection readiness

Completed: 0 / 4

Creating a wireless network on your first laptop

Once the equipment is successfully prepared, it's time to deploy the network itself. In Windows 10 and 11, this process is significantly simplified compared to previous versions. We'll use the "Mobile Hotspot" feature, which allows you to turn your laptop into an access point.

Open the system settings by going to the menu Start → Settings (gear) → Network and InternetIn the left column, select "Mobile Hotspot." Here, you'll need to select the connection source through which you'll share the internet (if available), or simply create a local network.

You can set your own values ​​in the Network Name and Network Password fields. Network name The SSID (Service Set Identifier) ​​should be unique to avoid confusion if there are other similar networks nearby. The password should be complex enough to prevent unauthorized devices from connecting to your local network.

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

This command, entered in the Command Prompt as an administrator, is an alternative way for advanced users to create a network. However, the Windows graphical interface provides a more convenient and intuitive way to manage the settings. After enabling the "Allow network users to use my internet connection" toggle, the system will automatically generate the necessary configurations.

What to do if the hotspot does not turn on?

If the switch is grayed out, try updating your wireless adapter drivers or temporarily disabling your antivirus software. Also, make sure that airplane mode isn't enabled on your device.

Setting up a second laptop for connection

Now that the first device is broadcasting a signal, you need to connect the second laptop to it. The process is almost identical to connecting to a regular home router. Open the list of available wireless networks on the second device by clicking the Wi-Fi icon in the system tray.

Find the network name you set on the first laptop in the list. Click it and select "Connect." The system will prompt you for a security key. Enter the password you set earlier, making sure to be case-sensitive.

An important step is choosing a network profile. When Windows asks if you want to make this computer discoverable, you must answer "Yes." This will switch the network type from "Public" to "Private," opening ports for local file sharing.

  • 📶 Find the created network in the list of available connections.
  • 📶 Enter the correct security password.
  • 📶 Confirm your consent to allow other users to discover your device.
  • 📶 Wait until the status "Connected, secure" appears.

If the connection is successful, you'll see a Wi-Fi icon with signal strength. A logical connection between the devices is now established, but for full functionality, you'll need to configure access rights.

Setting up sharing and discovery options

Simply being connected to the same Wi-Fi network doesn't guarantee that the laptops will "see" each other. The operating system blocks incoming connections by default for security reasons. You need to enable network discovery and file sharing.

Go to Control Panel → Network and Sharing Center. In the left menu, select Change advanced sharing settings. Here you'll see profiles for your current network (Private) and your guest network.

In the "Private" (current) profile, make the following settings:

  1. Enable network discovery.
  2. Enable automatic installation of network devices.
  3. Turn on file and printer sharing.

It's also recommended to enable password-protected sharing if you're in a location where others may be present. If you completely trust your surroundings and want easier access, you can disable this option, but this will reduce security.

Advanced settings and IP address management

In some cases, automatic IP address allocation may not work correctly, especially if there are other devices or address conflicts on the network. In these cases, manual protocol configuration is required. TCP/IPv4.

To set a static IP address, go to your wireless connection's properties. Find "Internet Protocol Version 4 (TCP/IPv4)" in the list, select it, and click "Properties." You can enter addresses manually here.

Parameter Laptop 1 (Host) Laptop 2 (Client)
IP address 192.168.137.1 192.168.137.2
Subnet mask 255.255.255.0 255.255.255.0
Main gateway 192.168.137.1 192.168.137.1

Using static addresses simplifies network device discovery, as their addresses won't change after a reboot. However, for most home use, leaving the "Obtain an IP address automatically" setting is sufficient.

Please note that the addresses must be in the same subnet. The last digit of the address (the host portion) must be unique for each device, and the first three digits (the network portion) must match.

File sharing and troubleshooting

Once all settings are complete, you can begin transferring data. Open File Explorer, select the folder you want to share, right-click it, and select "Properties" → "Sharing" tab → "Sharing" button.

Add the "Everyone" user or a specific system user and set the permission level (read or read and write). This folder will now be visible in the "Network" section on the second laptop.

⚠️ Note: Operating system interfaces may change with the release of new Windows updates. The location of some menu items may differ slightly from those described. Always check the latest Microsoft help.

If the computers can't see each other, check the "Function Discovery Resource Publishing" service. It should be running and running automatically. Restarting both laptops and the router (if it's being used as a bridge) may also resolve the issue.

A common error is that the firewall is blocking the connection. Try temporarily disabling Windows Firewall or a third-party antivirus for diagnostics. If the connection reappears after this, you'll need to add an exception rule in the security settings.

📊 What connection method did you use?
Via a mobile hotspot
Via the command line
Using a router
Via Bluetooth

Frequently Asked Questions (FAQ)

Is it possible to play online games over such a network?

Yes, if the game supports a local area network (LAN). Latency (ping) over a direct Wi-Fi connection is usually minimal, making it comfortable to play strategy games and shooters that don't require super-fast reflexes.

What is the maximum file transfer speed?

Speed ​​depends on the Wi-Fi standard (802.11n, ac, ax) and environmental conditions. Under ideal conditions, modern adapters can provide speeds of 20 to 100 Mbps or more, comparable to a wired connection.

Is internet required for such a network to operate?

No, internet access is not required. The local network works regardless of whether you have access to the internet. You can share files and play even in the woods without cell phone coverage.

Why can't the second laptop see the folders of the first?

Most likely, network discovery isn't enabled or the folder isn't shared. Also, make sure both computers are in the same workgroup (usually WORKGROUP) and have the "Private" network profile.