How to connect a laptop to a computer via Wi-Fi: step-by-step instructions for all versions of Windows

Connecting a laptop to a desktop PC wirelessly opens up a host of possibilities: from quickly transferring files to setting up a remote desktop or even sharing the internet from one device to another. However, many users encounter difficulties setting up such a connection—especially if they don't have a router handy and a direct connection via Wi-Fi Direct or ad-hoc-the network seems too complicated.

In this article we will look at three working methods Connecting a laptop to a computer via Wi-Fi - using standard tools Windows to specialized programs. You'll learn how to set up a network without a router, what security settings to choose, and how to avoid common errors (such as inaccessible files or slow transfer speeds). All instructions are relevant for Windows 10/11, but some methods are also suitable for older versions of the OS.

Important: If your goal is simply to transfer files, consider alternatives such as cloud services (Google Drive, Yandex Disk) or cable connection via EthernetWireless connection is convenient, but it doesn't always provide maximum speed.

📊 Why do you need to connect a laptop to a PC?
File transfer
Remote access (RDP)
Internet Sharing
Playing on a local network
Other

Method 1: Creating a Wireless Computer-to-Computer (Ad-Hoc) Network in Windows

This is a classic method that works without any additional software. The idea is that one of the computers (usually a desktop PC) acts as access points, and the laptop connects to it like regular Wi-Fi. The downside of this method is limited functionality (for example, file access doesn't always work) and the need to manually configure IP addresses.

To create ad-hoc-net:

  1. On main computer (which will distribute Wi-Fi) open Control Panel → Network and Sharing Center.

  2. Select Setting up a new connection or network → Setting up a wireless computer-to-computer network.

  3. Set network parameters:

    • Network name (SSID): any convenient (for example, MyPC-Network).
    • Security type: select WPA2-Personal (the most reliable).
    • Security key: Create a password that is at least 8 characters long.

  • After creating the network, turn it on Internet Connection Sharing (if you need to share the Internet from a PC to a laptop).

  • Now, on your laptop, find the created network in the list of available Wi-Fi networks and connect to it by entering the password. File sharing may require additional configuration. shared folders (more on this in the next section).

    Is Wi-Fi turned on on both devices?|Do the security settings match (WPA2)?|Is the password entered correctly?|Are files shared (if needed)?

    -->

    ⚠️ Attention: IN Windows 11 create option ad-hoc-the network may be hidden. If it's not in the menu, use command line (the method is described below) or third-party utilities like Virtual Router.

    Method 2: Using the command line to share Wi-Fi from a PC

    If the GUI doesn't work or you prefer more control, configure the network via CMDThis method is universal and works on all versions. Windows starting from 7The main advantage is the ability to flexibly configure network settings, including the Wi-Fi channel and the maximum number of connected devices.

    Run the following commands on the computer that will distribute Wi-Fi (as administrator):

    netsh wlan set hostednetwork mode=allow ssid=MyPC-Network key=YourPassword123
    

    netsh wlan start hostednetwork

    Where:

    • 🔹 MyPC-Network — the name of your network (replace with your own).
    • 🔹 YourPassword123 — password (minimum 8 characters).

    To allow your laptop to access the internet through this connection, open Network connections (ncpa.cpl), find your main internet connection (eg. Ethernet), right-click → Properties → Access and allow the connection to be used for Local Area Connection* X (Where X — the number of the created hosted network).

    Team Description
    netsh wlan show drivers Checks if your Wi-Fi adapter supports the mode hostednetwork (look for the line Hosted network support: yes).
    netsh wlan stop hostednetwork Stops Wi-Fi distribution (useful if you need to restart the network).
    netsh wlan set hostednetwork mode=disallow Disables Distributed Mode (use if you no longer need the network).

    3. Method: Programs for automatic connection setup

    If manual methods seem complicated, consider using specialized utilities. They simplify creating a Wi-Fi network and often offer additional features, such as traffic monitoring or managing connected devices. Below are proven programs with this support. Windows 10/11:

    • 🖥️ Virtual Router Plus — a simple open-source utility. It allows you to share Wi-Fi with one click, but hasn't been updated since 2016 (and may not work with newer adapters).
    • 🌐 Connectify Hotspot — a paid solution with advanced settings (device filtering, bandwidth control). The free version limits the network name.
    • 🔧 mHotspot — a free program that supports up to 10 devices. It displays connected clients and traffic usage.

    Example of setting in Connectify Hotspot:

    1. Download and install the program from official website.
    2. In the field Hotspot Name Enter the network name.
    3. Select an internet source (eg. Ethernet).
    4. Set a password and click Start Hotspot.

    The advantage of the programs is the automatic assignment of IP addresses (DHCP) and simple file sharing setup. However, they may conflict with antivirus software (for example, Kaspersky sometimes blocks Virtual Router).

    What to do if the program does not start?

    If the utility returns an error when starting, check:

    1. Is the built-in Windows firewall disabled (temporarily).

    2. Are the Wi-Fi adapter drivers updated?

    3. Are there any conflicts with VPN clients (for example, OpenVPN or WireGuard).

    If the problem persists, try a different program or return to the command line method.

    4. Setting up shared access to files and folders

    Even if the laptop is connected to the PC via Wi-Fi, file access will be blocked by default. To enable sharing:

    1. On the computer whose files you want to make available, right-click the folder → Properties → AccessShare.

    2. Select a user All and press Add, then set the access level (Reading or Reading and writing).

    3. IN Network and Control Center turn on Network discovery And File and Printer Sharing for profile Private.

    On your laptop, open Conductor and enter in the address bar \\[PC IP address] (For example, \\192.168.137.1). If the IP is unknown, find it out using the command ipconfig on PC (look for the address in the section Wireless LAN adapter).

    ⚠️ Attention: If an error appears when trying to access 0x80070035 ("Network path not found"), please check:
    • 🔸 Is it enabled? SMB 1.0 protocol (V Control Panel → Programs → Turn Windows features on or off).
    • 🔸 Is your firewall blocking access (add an exception for file sharing).

    5. Problems and solutions: why the connection doesn't work

    Even with the correct settings, the connection may not be established. Here common mistakes and ways to fix them:

    Problem Possible cause Solution
    The laptop doesn't see the network. Not supported ad-hoc or hostednetwork Update your Wi-Fi driver or use a router app
    There is a connection, but no internet Sharing is not enabled in the network adapter properties. Check the settings in ncpa.cpl → Properties → Access
    Slow file transfer speed Wi-Fi interference or weak signal Change the channel in the network settings (command netsh wlan set hostednetwork channel=6)
    Error "Unable to connect" Incorrect password or security type Recreate the network with a simple password (eg. 12345678) for the test

    If your laptop connects but the connection drops after a few minutes, check energy saving settings Wi-Fi adapter. Device Manager Find your adapter, open it Properties → Power Management and uncheck Allow the computer to turn off this device to save power.

    6. Alternative options: when Wi-Fi isn't suitable

    Wireless connectivity is convenient, but not always optimal. Consider these alternatives depending on your needs:

    • 📂 File transfer:
      • 🔹 Cloud services (Google Drive, Dropbox) - if the files are not large and there is internet access.
      • 🔹 USB drive or an external hard drive - for large amounts of data.
    • 🖱️ Remote access:
      • 🔹 TeamViewer or AnyDesk - if you need to control a PC from a laptop.
      • 🔹 RDP (built into Windows) - for local network (requires port configuration).
    • 🌍 Internet distribution:
      • 🔹 USB modem - if the laptop supports it USB tethering.
      • 🔹 Powerline adapters — for transmitting the Internet through electrical wiring.

    Critical detail: if you need play on a local network (for example, in Minecraft or CS:GO), a Wi-Fi connection may have a high ping due to interference. In this case, it is better to use Ethernet-cable or Powerline.

    7. Security: How to protect your connection from hacking

    The wireless network between the PC and laptop is vulnerable to attack. man in the middle, especially if you're using a weak password or an open network. Follow these rules:

    • 🔐 Use WPA2-PSK (or WPA3, if supported). Avoid WEP - This protocol can be hacked in minutes.
    • 📛 Change SSID networks with an obscure name (not MyNetwork or Home).
    • 🔄 Update your password regularly (especially if you connect in public places).
    • 🛡️ Turn off the network when it is not needed (using the command netsh wlan stop hostednetwork).

    If you are distributing the Internet from a PC to a laptop, turn it on firewall and check what devices are connected to your network. Windows 11 This can be done through Settings → Network & Internet → Wi-Fi → Manage known networks.

    ⚠️ Attention: Don't use this method to permanently distribute Wi-Fi in an office or public space. For such purposes, it's better to set up a separate router with a guest network.

    Frequently Asked Questions (FAQ)

    Is it possible to connect a laptop to a PC via Wi-Fi if the PC does not have a Wi-Fi adapter?

    No, both devices must have Wi-Fi modules for a wireless connection. If your PC doesn't have an adapter, buy an external one. USB Wi-Fi-module (for example, TP-Link TL-WN725N) or use Ethernet-cable.

    How to increase file transfer speed over Wi-Fi?

    The speed depends on the Wi-Fi standard:

    • 📶 802.11n (Wi-Fi 4): up to 150–300 Mbps.
    • 📶 802.11ac (Wi-Fi 5): up to 867–1300 Mbps.
    • 📶 802.11ax (Wi-Fi 6): up to 2400 Mbps.

    To speed up the transfer:

    • 🔹 Switch to the channel 5 GHz (less busy than 2.4 GHz).
    • 🔹 Reduce the distance between devices.
    • 🔹 Turn off other devices using Wi-Fi.

    Is it possible to play online games using this connection?

    Technically yes, but there will be delays (ping) Due to the specifics of Wi-Fi, it's better to use:

    • 🔹 Direct Ethernet-connection (cable) LAN).
    • 🔹 Powerline adapters (data transmission via electrical wiring).

    If you play via Wi-Fi, choose a channel with minimal interference (use utilities like Wi-Fi Analyzer for analysis).

    How to disable the created network when it is not needed?

    For a network created via the command line, run:

    netsh wlan stop hostednetwork
    

    netsh wlan set hostednetwork mode=disallow

    For ad-hoc- just turn it off in the network Network and Control CenterIf you used a program (for example, Connectify), close it or click Stop Hotspot.

    Does this method work to connect MacBook to PC?

    Partially. MacOS does not support connection to ad-hoc-networks by default, but you can:

    1. On PC create a network via netsh (as described above).
    2. On MacBook manually add a network to System Preferences → Network → Wi-Fi → Other Networks, indicating SSID and password.

    An alternative is to use programs like Virtual Router or connect via Bluetooth.