In the era of remote work and constant need for the Internet, the ability to distribute Wi-Fi from a laptop is becoming an essential skill. Imagine the situation: you are in a cafe with one wired connection, in a hotel with paid Wi-Fi for one device, or on a train where the router suddenly stopped working. In such cases a laptop can become a full-fledged access point, sharing the Internet on a smartphone, tablet or even another computer.

This article will not just list ways to distribute Wi-Fi - we will analyze hidden settings Windows 11/10, let's get around the pitfalls macOS Ventura/Monterey and show you how to make the distribution work on Linux (including Ubuntu 22.04 And Fedora). You will also find out why speed can drop by 30% and how to avoid this, what 2 parameters on the command line speed up the connection by 40% and why antiviruses block distribution in 20% of cases.

1. Preparing the laptop: what you need to check before distributing Wi-Fi

Before turning your laptop into a router, make sure it is physically capable of doing so. 90% of problems with Wi-Fi distribution occur due to unsuitable hardware or drivers. Here's what you need to do in advance:

  • 🔍 Check support Hosted Network (virtual access point). B Command line (as administrator) enter:
    netsh wlan show drivers

    Look for the line Hosted network support: yes. If there no — update the Wi-Fi adapter driver.

  • 📡 Make sure the Wi-Fi adapter is in 802.11n/ac/ax (and not just 802.11b/g). This affects the distribution speed. You can view it in Device Manager → Network adapters → Properties → Advanced.
  • 🔌 Connect your laptop to a power source. When running on battery, Windows can automatically limit the power of the Wi-Fi adapter, reducing the distribution speed by 20-30%.
  • 🛡️ Turn off VPNs and firewalls (including Windows Defender). They often block traffic between devices on a local network.

Pay special attention to drivers. If you have a laptop with a Wi-Fi adapter Intel AX200/AX210, Qualcomm Atheros QCA61x4 or Broadcom 43xx, download the latest drivers from the manufacturer's website - standard drivers from Windows Update are often outdated. For Linux may require kernel version 5.4+ for stable operation hostapd.

📊 What laptop do you have?
  • Lenovo
  • HP
  • Dell
  • Asus
  • Acer
  • Apple MacBook
  • Other

2. Method 1: Wi-Fi distribution via Mobile Hotspot (Windows 10/11)

The easiest method for most users is the built-in function Mobile hotspot. It works on all laptops with Windows 10 (version 1607+) And Windows 11, but has limitations: the maximum number of connected devices is 8, and the speed depends on the original connection.

Step by step instructions:

  1. Open Settings → Network and Internet → Mobile hotspot.
  2. In the field Internet Connection Sharing select a source (eg Ethernet or Wi-Fiif you are connected to a different network).
  3. Click Edit next to Network name and password:
    • 🔑 Come up with SSID (network name) without spaces and Cyrillic.
    • 🔒 Set a password length 8+ characters (we recommend using WPA2-PSK).
  • Turn on the switch Allow the use of my Internet connection on other devices.
  • If the power button is inactive or an error appears Failed to configure mobile hotspot, try:

    • 🔄 Restart the service WLAN Auto Configuration Service:
      net stop WlanSvc & net start WlanSvc
    • 📱 Disable Bluetooth - it may conflict with Wi-Fi frequency 2.4 GHz.
    • 🔧 B Device Manager Disable and re-enable the Wi-Fi adapter.

    The laptop is connected to the Internet (Ethernet/Wi-Fi/4G)

    Wi-Fi adapter driver updated

    VPN and firewalls disabled

    An available Wi-Fi channel has been selected (use Wi-Fi Analyzer)

    -->

    3. Method 2: Command Line (for advanced users)

    If Mobile hotspot doesn't work or you need more control over settings (for example, Wi-Fi channel selection or encryption type), use command line. This method even works on Windows 7 and allows you to distribute the Internet from 3G/4G modem.

    Run the following commands in order (all as administrator):

    netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=12345678 keyUsage=persistent
    

    netsh wlan start hostednetwork

    Replace MyWiFi to the desired network name, and 12345678 - for the password. After this, you need to allow sharing:

    1. Open Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings.
    2. Find the connection through which the laptop receives the Internet (for example, Ethernet), right click → Properties → tab Access.
    3. Check the box Allow other network users to use this computer's Internet connection.
    4. On the list Connecting your home network select the created network (usually LAN connection* X).

    To stop distribution, do:

    netsh wlan stop hostednetwork
    💡

    If distribution does not start automatically after a reboot, create .bat-file with command netsh wlan start hostednetwork and add it to startup.

    4. Method 3: Wi-Fi distribution on macOS (Ventura, Monterey, Big Sur)

    On MacBook Wi-Fi distribution is implemented easier than on Windows, but there are some nuances with M1/M2-chips. If you have macOS Ventura 13.3+, use the built-in Shared Internet:

    1. Open System Preferences → Sharing.
    2. Select Shared Internet in the left menu.
    3. In the field General connection indicate the source (for example, Ethernet or Thunderbolt Bridge).
    4. B For computers using mark Wi-Fi.
    5. Click Wi-Fi Settings and configure:
      • 📛 Network name (no spaces).
      • 🔐 Channel (we recommend 6 or 11 for 2.4 GHz).
      • 🔒 Security - only WPA2/WPA3 Personal.
  • Check the box to the left of Shared Internet and press Start.
  • On M1/M2 MacBook an error may appear Failed to enable Internet Sharing. Solution:

    • 🔌 Connect the charger - without it, macOS limits Wi-Fi functionality.
    • 📱 Disable Bluetooth And AirDrop in Control Center.
    • 🔄 Reboot System Management Controller (SMC):
      sudo nvram boot-args=""; sudo shutdown -r now
    Why does macOS limit the number of devices?

    Apple artificially limits the number of connected devices to 10 (on M1/M2) and 5 (on Intel). This is done to prevent the MacBook from being used as a full-fledged router. You can bypass the restriction through the terminal, but this requires disabling System Integrity Protection (SIP), which is unsafe.

    5. Wi-Fi distribution on Linux (Ubuntu, Fedora, Arch)

    B Linux Wi-Fi distribution is realized via hostapd And dnsmasq. This is a more flexible method, but requires manual configuration. Below are instructions for Ubuntu 22.04 And Fedora 38:

    Install the required packages:

    sudo apt update && sudo apt install hostapd dnsmasq -y  # Для Debian/Ubuntu
    

    sudo dnf install hostapd dnsmasq -y # Для Fedora

    Set up hostapd (create a file /etc/hostapd/hostapd.conf):

    interface=wlan0
    

    driver=nl80211

    ssid=MyLinuxWiFi

    hw_mode=g

    channel=6

    wmm_enabled=0

    macaddr_acl=0

    auth_algs=1

    ignore_broadcast_ssid=0

    wpa=2

    wpa_passphrase=12345678

    wpa_key_mgmt=WPA-PSK

    wpa_pairwise=TKIP

    rsn_pairwise=CCMP

    Then configure dnsmasq for distributing IP addresses (file /etc/dnsmasq.conf):

    interface=wlan0
    

    dhcp-range=192.168.100.100,192.168.100.200,255.255.255.0,24h

    Start the services:

    sudo systemctl unmask hostapd
    

    sudo systemctl enable hostapd

    sudo systemctl start hostapd

    sudo systemctl start dnsmasq

    If an error occurs Could not set channel for kernel driver, check if your Wi-Fi adapter supports the mode AP (Access Point). To do this, run:

    iw list | grep "Supported interface modes"

    The output should contain a point AP.

    6. Why the upload speed is falling: 5 reasons and solutions

    Even if you have configured the distribution correctly, the speed may be lower than expected. Here are the main reasons and ways to eliminate them:

    Problem Reason Solution
    Speed below 10 Mbps The Wi-Fi adapter operates in 802.11b/g In the adapter settings, select the mode 802.11n/ac and channel 40 MHz
    Ping above 100 ms Conflict with Bluetooth or other networks Disable Bluetooth or change the Wi-Fi channel to 1, 6 or 11
    The distribution ends after 5-10 minutes Saving energy disables Wi-Fi adapter B Device Manager turn off Allow this device to turn off to save power
    Devices connect, but the Internet does not work Incorrect settings NAT or DNS Check what's in Connection properties included IPv4 and the correct ones are indicated DNS (For example, 8.8.8.8)
    Speed drops when 3+ devices are connected Wi-Fi adapter bandwidth limitation Use Qos in the adapter settings or limit the number of connections to 2-3

    For maximum speed in Windows run these commands (they increase the priority of Wi-Fi traffic):

    netsh int tcp set global autotuninglevel=restricted
    

    netsh int tcp set global congestionprovider=ctcp

    💡

    If you distribute the Internet from a 3G/4G modem, the speed will be limited by the bandwidth of the mobile network. For example, even when connected via LTE Cat.6 (300 Mbit/s) the real distribution speed will be 50-70 Mbit/s due to the overhead of encryption and relaying.

    7. Security: how to protect your network from hacking

    By distributing Wi-Fi from a laptop, you open access to your local network. Here's how to minimize risks:

    • 🔐 Use only WPA2-PSK or WPA3. WEP And WPA hacked in minutes.
    • 🔄 Change your password every 2-3 days if you distribute Wi-Fi in public places.
    • 🚫 Disable WPS (if it suddenly turned on) - this is a vulnerability that allows you to guess the PIN in a few hours.
    • 👤 Limit the number of connected devices (in Windows this is done through netsh wlan set hostednetwork maxclients=3).
    • 🛡️ Enable your firewall and configure rules to block unwanted connections:
    netsh advfirewall firewall add rule name="Block WiFi Attacks" dir=in action=block protocol=TCP localport=135-139,445,3389

    If you distribute Wi-Fi in a cafe or airport, use guest network:

    1. Create a separate user in Windows with limited rights.
    2. B Network Sharing Center set the distributed network type Public.
    3. Turn off file and printer sharing in More sharing options.
    💡

    To check who is connected to your network, use the command arp -a on the command line. Strangers MAC addresses may indicate an unauthorized connection.

    8. Common mistakes and their solutions

    Even with proper setup, problems can arise. Here are the most common errors and how to fix them:

    ⚠️ Attention: If, after turning on the distribution, the Internet disappears on the laptop itself, check whether there are any conflicts IP addresses. Manually assign the laptop to static IP (For example, 192.168.137.1) in the adapter settings.
    • 🚫 Error 1068 (Failed to start hosted network):

      Reason: service WLAN AutoConfig disabled. Solution:

      sc config Wlansvc start=auto
      

      net start Wlansvc

    • 🔌 Devices connect, but the Internet does not work:

      Reason: not configured NAT or blocked by antivirus. Solution: disable your antivirus or manually register DNS (8.8.8.8) on connected devices.

    • 📡 Wi-Fi network is not visible on the phone:

      Reason: the adapter is operating in 5 GHz, and the phone only supports 2.4 GHz. Solution: Force the channel 2.4 GHz:

      netsh wlan set hostednetwork channel=6
    • 🔋 Distribution turns off when switching to battery:

      Reason: Power settings. Solution: in Control Panel → Power Options → Advanced Settings install Maximum performance for Wi-Fi adapter.

    ⚠️ Attention: On some laptops Lenovo And HP There is an option in the BIOS Wireless LAN Radio, which can block the distribution. Check that it is enabled (Enabled).

    FAQ: Answers to frequently asked questions

    Is it possible to distribute Wi-Fi from a laptop if it is itself connected via Wi-Fi?

    Yes, but it's called repeater mode. On Windows this only works via the command line with additional settings NAT. On macOS And Linux easier - just turn it on Shared Internet and select a source Wi-Fi. However, the speed will be 30-50% lower due to signal relay.

    How many devices can be connected to distribution from a laptop?

    The technical limit depends on the OS:

    • Windows 10/11: up to 8 devices (can be increased to 10 via the registry).
    • macOS: up to 10 (on M1/M2) or 5 (on Intel).
    • Linux: up to 20, but 3-4 really work stably.

    The practical limit is determined by the power of the Wi-Fi adapter. When connecting 5+ devices, the speed on each one drops by 2-3 times.

    How to increase the range of the distributed network?

    The radius depends on the transmitter power of the Wi-Fi adapter. To increase it:

    1. Use an external antenna (if your laptop supports M.2 or Mini PCIe adapters).
    2. Install a channel 1, 6 or 11 in mode 2.4 GHz - they are less susceptible to interference.
    3. B Linux increase transmit power (requires license root):
      iwconfig wlan0 txpower 20

      (maximum 20 dBm, but check local Wi-Fi power laws).

    Is it possible to distribute Wi-Fi from a laptop to Android Auto or CarPlay?

    Yes, but there are nuances:

    • For Android Auto It is enough to connect to the distributed network as to regular Wi-Fi.
    • For CarPlay (in cars BMW, Mercedes, Audi) is required for the network to support Bonjour (enabled by default in macOS, but may not work in Windows).
    • In some machines (for example, Tesla) Wi-Fi must be on the channel 6 and with encryption WPA2-AES.

    Is it true that sharing Wi-Fi drains your battery faster?

    Yes, but not critical. A Wi-Fi adapter in access point mode consumes 10-15% more energy than in normal mode. For example:

    • On MacBook Pro M1 Wi-Fi distribution reduces operating time by 1-1.5 hours (from 18 to 16.5 hours).
    • On Windows laptops (For example, Dell XPS 13) the difference is 20-30 minutes.
    • On Linux consumption depends on the driver - proprietary drivers (Broadcom) spend more than open ones (Intel).

    To reduce consumption, reduce the transmit power (in Linux) or disable Bluetooth.