Turning a laptop into a full-fledged router is easier than it seems. Just a few clicks in the operating system settings - and your Lenovo ThinkPad, MacBook Pro or even old Acer Aspire will begin distributing the Internet to smartphones, tablets and other devices. But not all methods are equally reliable: in some places the speed will drop by half, and in others the connection will drop every 15 minutes.

This article contains proven methods for Windows 10/11, macOS And Linux (including Ubuntu And Debian), comparison of their pros and cons, as well as unique tricks to increase connection stability, which are not in the standard instructions. For example, why is distribution through hostednetwork works worse in Windows than in Mobile Hotspot, and how to bypass the 8 connected devices limit in macOS.

1. Preparing the laptop: what to check before setting up

Before turning on Internet distribution, make sure that your laptop is physically capable of working as a router. Basic requirements:

  • 🔄 Wi-Fi adapter with mode support AP (Access Point). Most modern adapters (for example, Intel AX200, Qualcomm Atheros QCA61x4) support this mode, but older models (pre-2015) may require driver updates.
  • 📶 Stable Internet connection. If your laptop receives the Internet via Wi-Fi (and not via cable), the distribution speed will drop by 30–50% due to the peculiarities of the adapter operating in two modes at the same time.
  • 🔋 Battery charge >20%. When the charge level falls below this threshold, Windows and macOS automatically turn off background processes, including Wi-Fi sharing, to save energy.

To check mode support AP on Windows:

  1. Open Command line as administrator (click Win + XTerminal (Administrator)).
  2. Enter the command:
    netsh wlan show drivers
  3. Find the line Hosted network support. If it says Yes - your adapter is suitable.
⚠️ Attention: On laptops with adapters Broadcom (often found in MacBook and some models HP) distribution through standard Windows tools may not work. In this case, use third-party utilities like Connectify or mHotspot.
📊 What laptop do you have?
  • Lenovo
  • HP
  • Dell
  • Asus
  • Acer
  • Apple MacBook
  • Other

2. Distributing Wi-Fi through standard Windows tools (the easiest way)

Windows 10 and 11 have a built-in feature Mobile Hotspot, which converts a laptop into a router in 3 clicks. This method works for 90% of users, but has limitations:

  • 🔌 The maximum number of connected devices is 8 (in Windows 11 Pro - up to 16).
  • 📉 The distribution speed is limited by the bandwidth of the Wi-Fi adapter. For example, if your adapter only supports Wi-Fi 4 (802.11n), the maximum speed will be ~150 Mbit/s.
  • 🔒 No flexible security settings (you can only select WPA2-PSK).

Step by step instructions:

  1. Open Options (Win + I) → Network and InternetMobile hotspot.
  2. In the field Internet Connection Sharing select internet source (for example, Ethernet or Wi-Fi).
  3. Click Edit next to Network name And Network passwordto set your own parameters.
  4. Turn on the switch Mobile hotspot.

If the power button is inactive, check:

  • 🔹 Is the laptop connected to the Internet (even if you distribute via Wi-Fi, the main connection must be active).
  • 🔹 Is an antivirus blocking the distribution (for example, Kaspersky or Avast - they need to be temporarily disabled).
  • 🔹 Are the Wi-Fi adapter drivers updated (download them from the laptop manufacturer’s website, not through Device Manager).

Internet connection is active|Wi-Fi drivers are updated|Antivirus is disabled|Laptop is not in power saving mode-->

3. Alternative method for Windows: command netsh (for advanced users)

If Mobile Hotspot does not work or you need advanced settings (for example, changing the Wi-Fi channel), use command line. This method gives more control, but requires knowledge of the basics of network protocols.

Main advantages of the method:

  • 🔧 Possibility to choose Wi-Fi channel (useful in apartment buildings where networks are overloaded).
  • 🔄 Support dual-band Wi-Fi (2.4 GHz and 5 GHz), if the adapter allows it.
  • 📡 You can set non-standard SSID name (for example, with emoji or spaces).

Instructions:

  1. Open Command line on behalf of the administrator.
  2. Create a network named MyHotspot and password 12345678 (replace with your own):
    netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=12345678
  3. Start distribution:
    netsh wlan start hostednetwork
  4. Allow Internet sharing:
    • Open Control panelNetwork and InternetNetwork Sharing CenterChanging adapter settings.
    • Find the connection through which the laptop receives the Internet (for example, Ethernet), right click → Properties → tab Access.
    • Check the box Allow other network users to use your Internet connection and select the created network from the list (LAN connection* X).
⚠️ Attention: After rebooting the laptop, distribution via netsh will turn off. To avoid this, create .bat-file with command netsh wlan start hostednetwork and add it to startup.
netsh wlan set hostednetwork channel=6

(replace 6 to a free channel on your network).-->

4. How to share Wi-Fi from a MacBook (macOS)

On laptops Apple Internet distribution is even easier to set up than in Windows, but there are some nuances:

  • 🍎 On macOS no limit on the number of devices (unlike Windows), but the upload speed depends on the adapter model. For example, in MacBook Pro 2020 with chip Broadcom BCM4378 the maximum speed will be ~866 Mbit/s (when connected via Wi-Fi 5).
  • 🔒 By default the network is secure WPA2-PSK, but you can enable WPA3 (requires macOS Monterey or later).
  • ⚡ When distributing via Wi-Fi, the MacBook cannot simultaneously connect to another network at the same frequency 5 GHz (only 2.4 GHz or Ethernet).

Step by step setup:

  1. Open System SettingsSharing.
  2. From the left menu select Shared Internet.
  3. In the field Connection via: indicate the Internet source (for example, Ethernet or Wi-Fi).
  4. In the field For computers using: mark Wi-Fi.
  5. Click Wi-Fi Settings and set:
    • Network name (SSID): for example, MacBook-Hotspot.
    • Channel: Select manually (recommended 6 or 11 for 2.4 GHz).
    • Security: WPA2/WPA3 Personal.
    • Password: At least 8 characters.
  • Check the box Sharing in the left menu and confirm the action.
  • If distribution doesn't work:

    • 🔹 Check what's in System settingsNetworkWi-FiAdditionally mode enabled Create a network.
    • 🔹 Update macOS to the latest version (older versions have bugs with distribution via Wi-Fi + Wi-Fi).
    • 🔹 Reset network settings:
      sudo ifconfig en0 down
      

      sudo ifconfig en0 up

      (replace en0 to your network interface, you can find it with the command networksetup -listallhardwareports).

    💡

    In macOS, Wi-Fi distribution via Shared Internet Consumes 15–20% less energy than Windows thanks to driver optimization Broadcom.

    5. Internet distribution from a laptop on Linux (Ubuntu/Debian)

    In Linux, setting up Wi-Fi distribution requires working with a terminal, but it gives full control over network parameters. We will look at two methods: via nmcli (for beginners) and hostapd (for advanced).

    Method 1: Use nmcli (simple)

    1. Make sure the package is installed network-manager (most distributions have it by default).
    2. Create an access point:
      nmcli dev wifi hotspot ifname wlp3s0 ssid LinuxHotspot password "12345678"

      (replace wlp3s0 to the name of your Wi-Fi adapter, you can find it out with the command ip a).

    3. Enable internet sharing:
      sudo sysctl -w net.ipv4.ip_forward=1
      

      sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

      (replace eth0 to the interface through which the laptop receives the Internet).

    Method 2: Use hostapd (extended)

    This method is suitable for creating a stable network with channel settings, Wi-Fi standard (802.11n/ac) and other parameters. You will need to install packages:

    sudo apt install hostapd dnsmasq

    Next, create configuration files:

    1. /etc/hostapd/hostapd.conf:
      interface=wlp3s0
      

      driver=nl80211

      ssid=LinuxAP

      hw_mode=g

      channel=6

      wpa=2

      wpa_passphrase=12345678

      wpa_key_mgmt=WPA-PSK

    2. /etc/dnsmasq.conf:
      interface=wlp3s0
      

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

    3. Start the services:
      sudo systemctl start hostapd
      

      sudo systemctl start dnsmasq

    ⚠️ Attention: On some distributions (for example, Arch Linux) hostapd conflicts with NetworkManager. Before setting it up, disable it: sudo systemctl stop NetworkManager
    How to find out the supported modes of a Wi-Fi adapter in Linux?

    Run the command:

    iw list | grep -A 10 "Supported interface modes"

    If the output contains the line * AP, your adapter supports access point mode.

    6. Comparison of methods: which method to choose?

    Each of the considered methods has its pros and cons. The table below shows a comparison of key parameters:

    Method Difficulty setting up Max. speed Max. devices Stability Suitable for
    Mobile Hotspot (Windows) ⭐ (simple) Up to 300 Mbit/s 8 (16 in Pro) ✅✅✅✅ Beginner users, temporary distribution
    netsh (Windows) ⭐⭐ Up to 500 Mbit/s 10+ ✅✅✅ Advanced settings (channel, SSID)
    Shared Internet (macOS) Up to 866 Mbps Unlimited ✅✅✅✅✅ MacBook users, long distribution
    nmcli (Linux) ⭐⭐ Up to 400 Mbit/s 10+ ✅✅✅ Ubuntu/Debian users
    hostapd (Linux) ⭐⭐⭐⭐ Up to 1 Gbit/s 50+ ✅✅✅✅ Server solutions, advanced users

    The choice of method depends on your tasks:

    • 🎯 Do you need to quickly distribute the Internet to 1-2 devices? → Use Mobile Hotspot (Windows) or Shared Internet (macOS).
    • 🛠️ Do you need advanced settings (channel, Wi-Fi standard)?netsh (Windows) or hostapd (Linux).
    • 🖥️ Are you planning to distribute the Internet to 10+ devices?hostapd (Linux) or third-party utilities like Connectify.

    7. Common problems and their solutions

    Even after proper configuration, Wi-Fi distribution may be unstable. Here are typical problems and how to fix them:

    Problem 1: Devices connect, but the Internet does not work

    • 🔹 Check if it is turned on Internet sharing in the main connection settings.
    • 🔹 On Windows, disable the firewall temporarily:
      netsh advfirewall set allprofiles state off
    • 🔹 On Linux, check the rules iptables:
      sudo iptables -L -n -v

      If there is no rule MASQUERADE, add it again.

    Problem 2: The laptop does not see connected devices

    • 🔹 In Windows, update the Wi-Fi adapter driver manually (download from the manufacturer’s website, not through Device Manager).
    • 🔹 On macOS, reset your network settings:
      sudo networksetup -setdhcp Wi-Fi
    • 🔹 Check whether the IP address of the distributed network conflicts with the main one. For example, if the main network has a range 192.168.1.x, and distributed - 192.168.0.x, the devices will not see each other.

    Problem 3: Low speed or connection dropouts

    • 🔹 Change Wi-Fi channel to a less busy one (use utilities like WiFi Analyzer for Android or NetSpot for macOS/Windows).
    • 🔹 On Linux, reduce transmission powerif the adapter overheats:
      iwconfig wlp3s0 txpower 15

      (meaning 15 - this is 15 dBm, standard value - 20).

    • 🔹 Disable energy saving for Wi-Fi adapter in Windows:
      • Open Device ManagerNetwork adapters → right click on your Wi-Fi adapter → PropertiesPower management.
      • Uncheck Allow this device to turn off to save power.

    8. Security: how to protect your network from hacking

    By sharing Wi-Fi from your laptop, you risk becoming a target for hackers, especially if you use weak passwords or outdated encryption protocols. Follow these rules:

    • 🔐 Use WPA3 instead of WPA2 (available on Windows 11 and macOS Monterey+). If WPA3 not supported, please select WPA2-PSK with AES encryption.
    • 🔑 The password must be at least 12 characters and include letters, numbers and special characters. Example of a strong password: kL9#pQ2!mN4@xY7.
    • 📛 Do not use personal information in the network name (SSID) (For example, Ivanov_Home). It's better to choose neutral names like Guest-WiFi-5GHz.
    • 🕵️ Disable WPS (if it is suddenly enabled in manual settings). This protocol is vulnerable to brute force attacks.
    • 🔄 Change your password every 2–3 months, if you constantly distribute the Internet in public places.

    On Windows and Linux you can further configure filtering by MAC addresses, but this is not a panacea: an experienced hacker can replace the MAC in a few minutes. Much more effective:

    • 🔹 Limit the number of connected devices (in hostapd this is done by the parameter max_num_sta=5).
    • 🔹 Enable client isolation (in hostapd add the line ap_isolate=1) to prevent devices from seeing each other.

    On macOS, to improve security:

    1. Open Terminal and do:
      sudo /usr/libexec/airportd debug +AllUserland +AllDriver +AllVendor

      This will enable advanced network event logging.

    2. Check connected devices with the command:
      arp -a

      If you see unfamiliar IPs, disable distribution and change your password.

    💡

    The most vulnerable point when distributing Wi-Fi from a laptop is not a weak password, but DNS leak. Always make sure that your network settings are set to reliable DNS servers (for example, 1.1.1.1 or 8.8.8.8), not the DNS provider.

    FAQ: Answers to frequently asked questions

    Is it possible to distribute Wi-Fi from a laptop if the laptop itself is connected to the Internet via Wi-Fi (and not via cable)?

    Yes, but the speed will drop by 30–50%, because the Wi-Fi adapter will work in two modes simultaneously: receiving and transmitting data. In Windows 10/11 there is no way to bypass this limitation, but in macOS and Linux you can slightly optimize performance by selecting different channels for incoming and outgoing connections.

    For example, if your laptop is connected to the router on the channel 1 (2.4 GHz), distribute Internet on the channel 11. B hostapd this is configured by parameter channel=11.

    How many devices can be connected to a laptop router?

    It depends on the distribution method and operating system:

    • Windows 10/11 Home: up to 8 devices.
    • Windows 10/11 Pro: up to 16 devices.
    • macOS: There is no hard limit, but in practice, after 20–25 devices, lags begin.
    • Linux (hostapd): up to 50+ devices (depending on processor power).

    If you need to connect more devices, use third-party utilities like Connectify Hotspot (paid) or customize hostapd on Linux with the parameter max_num_sta=100.

    Why does Wi-Fi distribution turn off after sleeping or rebooting the laptop?

    This is standard OS behavior to save battery power. Solutions:

    • Windows: Create .bat-file with command netsh wlan start hostednetwork and add it to startup (Shell:Startup).
    • macOS: Enable the option Automatically enable sharing when connected to the network in settings Public access.
    • Linux: Add hostapd And dnsmasq to startup:
      sudo systemctl enable hostapd
      

      sudo systemctl enable dnsmasq

    Is it possible to distribute the Internet from a laptop at 5 GHz?

    Yes, but with reservations:

    • B Windows 5 GHz distribution is possible only if the adapter supports 802.11ac (Wi-Fi 5) or 802.11ax (Wi-Fi 6). Check it out with the command netsh wlan show drivers — the output should contain a point Radio type: 802.11ac.
    • B macOS 5 GHz is turned on automatically if the adapter supports this band. But if the laptop itself is connected to Wi-Fi at 5 GHz, the distribution will only work at 2.4 GHz.
    • B Linux you need to manually specify the range in hostapd.conf:
      hw_mode=a
      

      channel=36

      (channels 36–48 And 149–165 - for 5 GHz).

    How to increase the range of Wi-Fi distributed from a laptop?

    The standard range of Wi-Fi from a laptop is 10–15 meters indoors. To increase it:

    • 📶 Use an external antenna (if the laptop supports connection via M.2 or USB). For example, adapter TP