Creating a Wi-Fi network from a laptop is a versatile solution when you don't have a router handy but need internet access on multiple devices. This can be useful on a trip, at the cottage, or even at home if your main router suddenly breaks down. But how do you set up sharing correctly to avoid connection issues or slow speeds?
In this article, we will look at all the current methods for creating a Wi-Fi network on laptops with Windows 10/11, macOS And Linux, including hidden settings that improve connection stability. You'll learn how to choose the optimal method depending on your operating system, how to protect your network from unauthorized access, and what to do if devices can't see the access point you've created.
We'll pay special attention to common errors: why your network may be slow, how to avoid IP address conflicts, and what to do if your laptop refuses to share the internet after updating drivers. All instructions are adapted for current OS versions and tested for compatibility with modern smartphones, tablets, and other gadgets.
1. Preparing your laptop for Wi-Fi sharing: what to check
Before setting up your network, make sure your laptop is technically capable of distributing Wi-Fi. Here are some key points that are often overlooked:
- 🔄 Wi-Fi adapter must support the regime
Hosted Network(virtual access point). Check it out inDevice Manager- if there is a tab in the adapter propertiesVirtual Wi-Fi, Everything is fine. - 📶 Drivers must be up-to-date. Outdated versions often block distribution. Update them via
device Manageror from the manufacturer's website (for example, Intel, Qualcomm Atheros). - 🔌 Internet source: The laptop must be connected to the network via Ethernet, a USB modem, or mobile internet (3G/4G/5G). Sharing is not possible without an incoming connection.
- 🛡️ Antivirus/firewall: some programs (for example, Kaspersky, Avast) are blocking network creation. Temporarily disable them or add an exception.
If you use Windows 11, check your power saving settings: the system may turn off the Wi-Fi adapter to save battery power. Go to Settings → System → Power & sleep → Additional power settings and select the scheme High performance.
⚠️ Attention: On some laptops (especially with adapters) Realtek) Wi-Fi sharing is unstable due to hardware limitations. If the network keeps dropping out after all the settings, try using an external USB Wi-Fi adapter (e.g., TP-Link TL-WN725N).
2. Method 1: Sharing Wi-Fi via the command line (Windows)
This is a universal method that works on all versions. Windows (from 7 to 11). It doesn't require any third-party software and provides complete control over network settings.
Open Command prompt as administrator (click Win + X and select the appropriate item) and enter the commands sequentially:
netsh wlan set hostednetwork mode=allow ssid="Network_Name" key="Network_Password" keyUsage=persistent
netsh wlan start hostednetwork
Replace Network_name And Network_Password to your values. The password must be at least 8 characters long. After running the second command, the network will be active, but without internet access. To provide it:
- Open
Control Panel → Network and Sharing Center. - Click on the active connection (for example,
Ethernet), then selectProperties. - Go to the tab
Accessand check the boxAllow other network users to share your Internet connection. - In the drop-down list, select the network you created (it will be called
Local Area Connection* X).
If after these steps the Internet does not work on the connected devices, check your firewall settings: add an exception for incoming connections via TCP/IP (ports 80 and 443).
Make sure Wi-Fi is turned on on your laptop|
Check your internet connection (Ethernet/USB modem)|
Disable VPN (if used)|
Run Command Prompt as Administrator-->
3. Method 2: Mobile hotspot in Windows 10/11
In modern versions Windows there is a built-in function Mobile hotspot, which simplifies Wi-Fi sharing. It automatically configures internet access and manages connected devices.
To activate the hotspot:
- Go to
Settings → Network & Internet → Mobile Hotspot. - In the field
Sharing an Internet connectionselect a source (egEthernetorWireless network, if you use a USB modem). - Click
Changeto set the network name (SSID) and password (minimum 8 characters). - Move the slider
Mobile hotspotin positionOn
The advantage of this method is automatic configuration. DHCP And NAT, which eliminates the need to manually assign IP addresses. However, it has limitations:
- 🔌 Doesn't work if the laptop is connected to the Internet via PPPoE (for example, some providers require entering a login/password).
- 📱 The maximum number of connected devices is 8 (unlike the command line, where the limit depends on the adapter).
- 🔄 When changing the internet source (for example, from Ethernet to 4G), the hotspot may disconnect.
⚠️ Attention: If after turning on the hotspot the devices connect, but the Internet does not work, check the settingsIPv4in the network adapter properties. Sometimes Windows assigns the default gateway incorrectly. Manually enter it192.168.137.1(standard distribution address).
4. Method 3: Sharing Wi-Fi on macOS (MacBook)
On laptops Apple Creating a hotspot is even easier thanks to the feature Internet access sharingIt works stably, but has its own nuances.
Instructions for macOS Ventura and newer:
- Open
System Preferences → Sharing. - In the left menu, select
Internet access sharing. - In the field
General connectionPlease specify the internet source (e.g.EthernetorThunderbolt). - In the section
For computers usingcheck the box next to itWi-Fi. - Click
Wi-Fi settingsand ask:- Network Name (
SSID) - Channel (recommended)
6or11for minimal interference) - Security: Select
WPA2/WPA3 Personal - Password (minimum 8 characters)
- Network Name (
Internet access sharing.Features of distribution on MacBook:
| Parameter | Windows | macOS |
|---|---|---|
| Max devices | 8–10 (depending on the adapter) | Up to 15 |
| 5 GHz support | Yes (if the adapter supports it) | Yes (starting with macOS Monterey) |
| Auto power off | When closing the lid | When entering sleep mode |
| Speed | Limited by adapter | Up to 866 Mbps (on M1/M2) |
Important: If you use MacBook with a chip M1/M2, Wi-Fi distribution may conflict with the function AirDropTurn it off in Control Center, if you notice connection breaks.
sudo networkssetup -setairportpower en0 on
(replace en0 to your network interface, which can be found out using the command networksetup -listallhardwareports).-->
5. Method 4: Sharing Wi-Fi on Linux (Ubuntu, Mint, Fedora)
In distributions Linux There's no single graphical interface for distributing Wi-Fi, but this is compensated by the flexibility of settings via the terminal. We'll look at two methods: using nmcli (NetworkManager) and hostapd (for advanced users).
Method 1: Via NetworkManager (Easy)
Open terminal and run:
sudo nmcli dev wifi hotspot ifname wlp3s0 ssid "MyLinuxHotspot" password "12345678"
Replace:
wlp3s0— the name of your Wi-Fi adapter (you can find out using the commandip a)MyLinuxHotspot— network name12345678- password
Method 2: via hostapd (for stable operation)
This method is more complicated, but allows you to fine-tune the network (for example, select a channel or standard 802.11n/ac). Install packages:
sudo apt install hostapd dnsmasq
Then create a configuration file /etc/hostapd/hostapd.conf with the following contents:
interface=wlp3s0driver=nl80211
ssid=MyLinuxHotspot
hw_mode=g
channel=6
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Start the access point:
sudo systemctl unmask hostapdsudo systemctl enable hostapd
sudo systemctl start hostapd
To share the Internet, turn on IP forwarding:
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
⚠️ Attention: On some distributions (for example, Fedora) servicehostapdmay conflict withNetworkManagerBefore setting it up, disable it:sudo systemctl stop NetworkManager.
How to find out the name of a Wi-Fi adapter in Linux?
Enter the command iwconfig or ip aLook for an interface with a name starting with wlp (wireless) or wlan. For example:
wlp3s0 IEEE 802.11 ESSID:"MyNetwork"
This is your adapter.
6. Method 5: Third-party programs for distributing Wi-Fi
If built-in OS tools don't work or you need additional features (such as traffic limiting or device blacklisting), use specialized utilities. We tested five popular programs and selected the best:
| Program | OS support | Peculiarities | Cons |
|---|---|---|---|
| Connectify Hotspot | Windows 7–11 | Intuitive interface, 3G/4G modem support, ad blocker | Paid version (from $35), limited to 5 devices in free version |
| MyPublicWiFi | Windows 7–10 | Free, lightweight, shows connected devices | Not updated since 2019, no Windows 11 support |
| Virtual Router Plus | Windows 7–10 | Open source, easy to set up | Unstable operation on Windows 11, no technical support |
| Baidu WiFi Hotspot | Windows, macOS | Support for Cyrillic SSIDs, built-in speed test | Closed source code, may have privacy issues |
| Linux: create_ap | Any Linux | Works without hostapd, supports multiple SSIDs | Requires manual installation of dependencies |
For Windows 11 we recommend Connectify Hotspot - It is fully compatible with the new OS and offers advanced security settings (for example, MAC address filtering). macOS There are practically no alternatives to the standard hotspot, but it is suitable for advanced users WiFi Explorer (paid, $20).
Important: Before installing third-party programs, check them for VirusTotal — Some Wi-Fi distribution utilities contain built-in miners or adversaries.
7. Typical problems and their solutions
Even after proper configuration, the network may still malfunction. We've compiled a list of the most common errors and how to fix them:
- 🔴 "Failed to start hosted network" (Windows):
- Check if your adapter supports it
Hosted Network(teamnetsh wlan show drivers— look for the lineHosted network support: yes). - Update the adapter driver from the manufacturer's official website (not via Windows Update!).
- Disable your antivirus and firewall.
- Check if your adapter supports it
- 🔴 Devices connect, but the internet doesn't work:
- Check your sharing settings (tab
Accessin the connection properties). - Make sure that the connected devices do not have a static IP. Switch them to
DHCP. - Run in command line:
netsh winsock resetand restart your laptop.
- Check your sharing settings (tab
- 🔴 Slow distribution speed:
- Change the Wi-Fi channel manually (for example, from
6on11) to avoid interference. - Disable downloads/updates on your laptop that consume traffic.
- If you use USB modem, check your operator's restrictions (some tariffs block distribution).
- Change the Wi-Fi channel manually (for example, from
- 🔴 The laptop does not see the network after sleep/hibernation:
- Disable power saving mode for your Wi-Fi adapter in
Device Manager. - Restart the network with the command:
netsh wlan stop hostednetwork && netsh wlan start hostednetwork.
- Disable power saving mode for your Wi-Fi adapter in
⚠️ Attention: If you are distributing the Internet via USB modem (For example, MTS, Beeline, Megafon), check if your carrier blocks this type of connection. Some plans only allow data sharing through the official app (for example, MTS Connect).
8. Security: How to protect your Wi-Fi network
Sharing Wi-Fi from a laptop is convenient, but it's fraught with risks, from neighbors connecting to traffic interception. Follow these rules to minimize the risks:
- 🔐 Use WPA2-PSK (AES) or WPA3 for encryption.
WEPAndWPAhacked in minutes. - 🔄 Change your password every 2-3 weeks if you use the network regularly.
- 📱 Turn off the distribution when it is not needed (especially in public places).
- 🛡️ Enable your firewall and make sure it's not blocking ports
80,443And53(DNS). - 👤 Limit the number of connected devices (in the hotspot settings or through third-party programs).
For additional protection on Windows You can create a separate network profile with limited rights:
- Open
Control Panel → Network and Sharing Center → Advanced Sharing Settings. - Select a profile
Guest or public. - Turn it off
File and Printer SharingAndNetwork discovery.
On macOS And Linux To monitor connected devices, use the following commands:
- macOS:
arp -a(shows all devices on the local network). - Linux:
nmap -sn 192.168.x.0/24(scans the network, replacexto your subnet).
If you're sharing Wi-Fi in a public place (cafe, airport), never use the same password as your personal accounts. Attackers can intercept it through vulnerabilities in the WPS protocol.
netsh wlan set hostednetwork mode=disallow
This is useful if you notice a suspicious device in the list of connected devices.-->
FAQ: Answers to frequently asked questions
Is it possible to share Wi-Fi from a laptop without an internet connection (just for file sharing)?
Yes, create a network via the command line (netsh wlan set hostednetwork) or hostapd (Linux), but don't set up sharing. Devices will be able to connect to each other, but without internet access. To share files, use FTP server (For example, FileZilla) or SMB (in Windows, enable File sharing).
Why won't my iPhone connect to the network shared from my laptop?
The problem is most often related to security settings:
- On iPhone, go to
Settings → Wi-Fi, click on the network name and selectForget this network, then reconnect. - If used
WPA3, try switching toWPA2(Some iPhone models do not work well with the new standard). - Check that the network name (
SSID) there are no Cyrillic characters or spaces.
How to distribute Wi-Fi from a laptop at 5 GHz?
To do this, your Wi-Fi adapter must support the standard. 802.11ac (or ax for Wi-Fi 6). Check it out in Device Manager (adapter properties). If supported:
- IN Windows When creating a network via the command line, add the parameter
channel=36 (or another channel from the 5 GHz range).
- IN Linux in the file
hostapd.conf write:
hw_mode=a
channel=36
- On macOS Select channel 36-48 or 149-165 in the hotspot settings.
Please note that the 5 GHz network range is shorter than the 2.4 GHz network range.
802.11ac (or ax for Wi-Fi 6). Check it out in Device Manager (adapter properties). If supported:
channel=36 (or another channel from the 5 GHz range).hostapd.conf write:
hw_mode=a
channel=36
Is it possible to share Wi-Fi from a laptop if it is connected to another Wi-Fi network?
Technically yes, but it creates double NAT, which can lead to problems with:
- Online games (high ping).
- IP telephony (Skype, Zoom).
- Some messengers (Telegram, WhatsApp).
To avoid this, connect your laptop to the Internet via Ethernet or USB modemIf this is not possible, disable it in the distribution settings. NAT and set up bridge (bridge) between adapters.
How many devices can be connected to the shared network?
It depends on the OS and adapter:
- Windows: up to 8-10 devices (limit
Hosted Network). - macOS: up to 15 devices.
- Linux: up to 20–30 (depending on settings)
hostapd).
In practice, stable operation is achieved with 3-5 devices. With more devices, speed drops due to limitations of the laptop processor.