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:
- Open
Command lineas administrator (clickWin + X→Terminal (Administrator)). - Enter the command:
netsh wlan show drivers - Find the line
Hosted network support. If it saysYes- 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.
- 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:
- Open
Options(Win + I) →Network and Internet→Mobile hotspot. - In the field
Internet Connection Sharingselect internet source (for example,EthernetorWi-Fi). - Click
Editnext toNetwork nameAndNetwork passwordto set your own parameters. - 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:
- Open
Command lineon behalf of the administrator. - Create a network named
MyHotspotand password12345678(replace with your own):netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=12345678 - Start distribution:
netsh wlan start hostednetwork - Allow Internet sharing:
- Open
Control panel→Network and Internet→Network Sharing Center→Changing adapter settings. - Find the connection through which the laptop receives the Internet (for example,
Ethernet), right click →Properties→ tabAccess. - Check the box
Allow other network users to use your Internet connectionand select the created network from the list (LAN connection* X).
- Open
⚠️ Attention: After rebooting the laptop, distribution vianetshwill turn off. To avoid this, create.bat-file with commandnetsh wlan start hostednetworkand 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 enableWPA3(requires macOS Monterey or later). - ⚡ When distributing via Wi-Fi, the MacBook cannot simultaneously connect to another network at the same frequency
5 GHz(only2.4 GHzor Ethernet).
Step by step setup:
- Open
System Settings→Sharing. - From the left menu select
Shared Internet. - In the field
Connection via:indicate the Internet source (for example,EthernetorWi-Fi). - In the field
For computers using:markWi-Fi. - Click
Wi-Fi Settingsand set:- Network name (SSID): for example,
MacBook-Hotspot. - Channel: Select manually (recommended
6or11for2.4 GHz). - Security:
WPA2/WPA3 Personal. - Password: At least 8 characters.
- Network name (SSID): for example,
Sharing in the left menu and confirm the action.If distribution doesn't work:
- 🔹 Check what's in
System settings→Network→Wi-Fi→Additionallymode enabledCreate 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 downsudo ifconfig en0 up(replace
en0to your network interface, you can find it with the commandnetworksetup -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)
- Make sure the package is installed
network-manager(most distributions have it by default). - Create an access point:
nmcli dev wifi hotspot ifname wlp3s0 ssid LinuxHotspot password "12345678"(replace
wlp3s0to the name of your Wi-Fi adapter, you can find it out with the commandip a). - Enable internet sharing:
sudo sysctl -w net.ipv4.ip_forward=1sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE(replace
eth0to 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:
/etc/hostapd/hostapd.conf:interface=wlp3s0driver=nl80211
ssid=LinuxAP
hw_mode=g
channel=6
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK/etc/dnsmasq.conf:interface=wlp3s0dhcp-range=192.168.100.100,192.168.100.200,255.255.255.0,24h- Start the services:
sudo systemctl start hostapdsudo systemctl start dnsmasq
⚠️ Attention: On some distributions (for example, Arch Linux)hostapdconflicts withNetworkManager. 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) orShared Internet(macOS). - 🛠️ Do you need advanced settings (channel, Wi-Fi standard)? →
netsh(Windows) orhostapd(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 -vIf 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 Manager→Network adapters→ right click on your Wi-Fi adapter →Properties→Power management. - Uncheck
Allow this device to turn off to save power.
- Open
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
WPA3instead ofWPA2(available on Windows 11 and macOS Monterey+). IfWPA3not supported, please selectWPA2-PSKwith 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 likeGuest-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
hostapdthis is done by the parametermax_num_sta=5). - 🔹 Enable client isolation (in
hostapdadd the lineap_isolate=1) to prevent devices from seeing each other.
On macOS, to improve security:
- Open
Terminaland do:sudo /usr/libexec/airportd debug +AllUserland +AllDriver +AllVendorThis will enable advanced network event logging.
- Check connected devices with the command:
arp -aIf 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 commandnetsh wlan start hostednetworkand add it to startup (Shell:Startup). - macOS: Enable the option
Automatically enable sharing when connected to the networkin settingsPublic access. - Linux: Add
hostapdAnddnsmasqto startup:sudo systemctl enable hostapdsudo 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) or802.11ax(Wi-Fi 6). Check it out with the commandnetsh wlan show drivers— the output should contain a pointRadio 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=achannel=36(channels
36–48And149–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.2orUSB). For example, adapter TP