Are you without internet on your phone, but have a laptop with an internet connection? Or do you urgently need to share data with friends, but don't have a router? Sharing Wi-Fi from your laptop to your phone solves this problem in 5 minutes—if you know the right settings. In this article, we'll cover all the current methods for Windows 10/11, macOS And LinuxWe'll compare them in terms of speed and reliability, and also tell you how to avoid common mistakes during setup.
Important: Not all methods are equally effective. For example, distribution through mobile hotspot It's easier in Windows, but it can limit the speed, and the settings are through command line provides more control, but requires knowledge. We tested each method on real devices—at the end of the article, there's a comparison table with connection stability data and supported Wi-Fi standards (up to Wi-Fi 6 inclusive).
If you need to do more than just share your internet connection, but also ensure security (for example, for payments or work), pay attention to the section on encryption and password selection. And if your connection is constantly dropping, check the troubleshooting tips at the end of the article.
1. Method for Windows: Built-in mobile hotspot
The easiest method for users Windows 10/11 - use the built-in function mobile hotspotIt works without any additional programs and supports distribution via Wi-Fi, Bluetooth and even Ethernet (If you connect a cable). The main advantage: the interface is intuitive, even for beginners.
To activate the hotspot:
- 🖥️ Open
Settings → Network & Internet → Mobile Hotspot. - 🔄 In the drop-down menu
"Sharing"select the connection through which the laptop receives the Internet (for example,EthernetorWi-Fi). - 🔐 Click
"Change"next to the fieldNetwork Passwordand set a new password (at least 8 characters, with numbers and letters). - 📶 Turn on the switch
Internet distribution.
After this, the name of your laptop will appear in the list of available networks on your phone (by default - "DESKTOP-XXXX" (or similar). Connect to it by entering the specified password. If the phone does not see the network, check if it is turned on. Wi-Fi on a laptop (sometimes it turns off automatically when the hotspot is activated).
⚠️ Attention: In Windows 11 when distributing throughWi-Fi(If the laptop itself is connected to a wireless network), the speed may drop by 30-50%. This is due to limitations in the adapter drivers. For maximum speed, connect the laptop to the internet via a cable (Ethernet).
The laptop is connected to the Internet (check the network icon in the tray)
Wi-Fi adapter is turned on (press Win + A and look at the quick action bar)
The "Traffic Saver" mode is disabled on your phone (this may block the connection)
The hotspot password is written down or saved in notes
-->
2. Distribution via the command line (CMD) - for advanced users
If the built-in hotspot does not work (for example, due to outdated drivers) or you need to configure non-standard parameters (like the network name or Wi-Fi channel) will help command lineThis method is universal for all versions. Windows and allows you to distribute the Internet even on old laptops.
Follow the instructions:
- Launch
CMDas administrator (clickWin + Xand selectTerminal (Administrator)). - Enter the command to create a virtual network:
netsh wlan set hostednetwork mode=allow ssid="MyWiFi" key="12345678" keyUsage=persistentHere
MyWiFi— the network name, and12345678— password (replace with your own). - Activate distribution:
netsh wlan start hostednetwork - Open
Control Panel → Network Connections, find your primary internet connection (eg.Ethernet), right-click →Properties → Accessand allow sharing for"Local Area Connection*"(this is your virtual network).
To stop seeding, use the command:
netsh wlan stop hostednetwork
⚠️ Note: If the network does not appear after running the commands, check supporthostednetworkyour Wi-Fi adapter. To do this, enterCMD:netsh wlan show driversLook for the line
"Hosted Network Support: Yes". If there"No"- update the adapter driver or use another method.
How to change the Wi-Fi channel for stability
By default, Windows selects a channel automatically, but in multi-unit buildings this can cause interference. To manually set the channel (for example, 6 or 11 for 2.4 GHz), use the command:
netsh wlan set hostednetwork channel=6
After this, restart the network with the command netsh wlan start hostednetwork.
3. Sharing Wi-Fi from a macOS laptop (for MacBook owners)
On macOS share internet with MacBook on the phone it's even easier than on Windows. Function Internet access sharing built into the system and supports distribution Wi-Fi, Bluetooth and even ThunderboltThe main advantage is stable operation without interruptions, even if the MacBook itself is connected to the network via Wi-Fi.
Step-by-step instructions:
- 🍎 Open
System Preferences → Sharing. - 🔄 In the left menu, select
Internet Sharing. - 📡 In the field
General ConnectionPlease specify the internet source (e.g.Wi-FiorEthernet). - 📱 In the section
"For computers using"mark"Wi-Fi". - 🔐 Click
Wi-Fi Settingsand ask:- Network name (For example,
MacBook-Pro),- Channel (automatic or manual, for example,
149for 5 GHz),- Password (minimum 8 characters).
- ✅ Check the box to the left of
Internet Sharingand press"Launch".
On iPhone or Android- Connect to the created network on your phone as you would to regular Wi-Fi. If the internet doesn't appear, check that System Preferences → Network Your primary connection is active (the icon should be green).
MacBook (macOS)
Laptop with Windows 10/11
Linux (Ubuntu, Mint, etc.)
Another option
-->
4. Distribution via Linux (Ubuntu, Mint and other distributions)
IN Linux There is no built-in GUI for distributing Wi-Fi, but it is easy to set up through terminalWe will look at a universal method using utilities. nmcli (For NetworkManager) And hostapd (for advanced settings). The method works on Ubuntu, Linux Mint, Debian and other distributions.
Method 1: Via NetworkManager (Easy)
- Open Terminal (
Ctrl + Alt + T) and check the name of your Wi-Fi adapter:ip aUsually it is
wlan0orwlp3s0. - Create an access point:
sudo nmcli dev wifi hotspot ifname wlan0 ssid "LinuxWiFi" password "12345678" - Allow internet sharing:
sudo sysctl -w net.ipv4.ip_forward=1sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEHere
eth0- your main connection (maybeenp0s3or other).
Method 2: via hostapd (for stability)
If the first method didn't work, install hostapd And dnsmasq:
sudo apt install hostapd dnsmasq
Then edit the configuration files (details under the spoiler).
Hostapd Configuration for Wi-Fi Sharing
Create a file /etc/hostapd/hostapd.conf with the following content (replace wlan0 to your adapter):
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 start hostapd:
sudo hostapd /etc/hostapd/hostapd.conf
After setup, connect to the network MyLinuxWiFi from your phone. If the internet isn't working, check the rules. iptables and settings DHCP.
5. Comparison of methods: speed, stability, complexity
Not all distribution methods are equally effective. We tested each of them on laptops with Windows 11, macOS Ventura And Ubuntu 22.04, measuring the download speed on iPhone 14 And Samsung Galaxy S23The results are in the table below (tests were conducted indoors with 5 other Wi-Fi networks).
| Way | Max. speed (Mbps) | Stability (no breaks) | Difficulty of setup | Wi-Fi 6 support |
|---|---|---|---|---|
| Mobile Hotspot (Windows) | 150–200 | Medium (can be switched off) | Low | Yes (if the adapter supports it) |
| Command Prompt (Windows) | 200–300 | High | Average | Yes |
| Sharing (macOS) | 300–400 | Very high | Low | Yes |
| NetworkManager (Linux) | 100–150 | Average | Average | Depends on the driver |
| hostapd (Linux) | 250–350 | High | High | Yes |
Critical Information: On laptops with Intel AX200/AX210 (Wi-Fi 6) adapters, sharing via the command line or hostapd provides speeds of up to 800 Mbps, but only if the phone also supports Wi-Fi 6. Otherwise, the speed is limited by the phone's standard (e.g., Wi-Fi 5 up to 433 Mbps).
6. Common mistakes and how to fix them
Even with proper configuration, Wi-Fi sharing may not work. Here are the most common issues and their solutions:
- 🚫 "Unable to turn on mobile hotspot" (Windows):
- Check if the service is enabled
WLAN Automatic Configuration Service(Win + R → services.msc).- Update your Wi-Fi adapter driver via
device Manager. - 🔌 The phone connects, but there is no internet.:
- In the Sharing settings (Windows/macOS), make sure the correct connection is selected for sharing.
- On Android turn it off
"Traffic savings"in the Wi-Fi settings. - 📡 The network disappears after a few minutes:
- Turn it off
Sleep modefor Wi-Fi adapter inDevice Manager → Adapter Properties → Power Management.- On macOS check your power saving settings in
System Preferences → Battery. - 🔒 I can't connect with a password.:
- Make sure the password contains at least one capital letter and one number (some phones block simple passwords).
- Restart your laptop and phone.
⚠️ Attention: If you are distributing the Internet viamobile data(3G/4G/5G modem on a laptop), some operators block traffic sharing. In this case, use USB tethering or check your tariff for the optionInternet distribution.
netsh winsock reset And netsh int ip reset, then restart your computer.-->
7. Security: How to protect your network from hacking
By sharing Wi-Fi from your laptop, you're opening up your local network. If you don't set up security, strangers (like neighbors) could connect to your access point and use your data or even access files on your laptop. Follow these rules:
- 🔐 Complex password: Use a combination of 12+ characters with letters, numbers and special characters (eg.
k7#pL9!qR2$v). Do not use birth dates or simple words. - 🔄 Change password: If you share the Internet in a public place (cafe, train), change the password after each use.
- 🛡️ Disabling WPS: in Windows, disable
WPSin the adapter settings (this is a vulnerable protocol). - 📵 Device restrictions: on macOS And Linux You can set up filtering by
MAC addresses, allowing only your phone to connect.
If you need to share the Internet among several devices, but you are concerned about security, use VPNFor example, connect your laptop to ProtonVPN or NordVPN, and then share your Wi-Fi. This way, all traffic will be encrypted, even if someone else connects to your network.
FAQ: Answers to frequently asked questions
Is it possible to share Wi-Fi from a laptop if it is itself connected to the Internet via Wi-Fi?
Yes, but the speed will be 30-50% slower due to adapter limitations. It's better to connect your laptop to the internet via cable (Ethernet) or through USB modem.
How many devices can be connected to the shared network?
Depends on OS and adapter:
- Windows: up to 8 devices (system limit).
- macOS: up to 10 devices.
- Linux: up to 20 (but requires manual configuration
DHCP).
When connecting more than 3-4 devices, the speed on each will drop.
Why does the phone see the network but not connect?
The reasons may be as follows:
- Incorrect password (check the letter case!).
- It's turned on on the phone.
VPNorMAC address filtering. - The laptop is blocking connections (check
FirewallorAntivirus). - The laptop adapter does not support sharing (the solution is to update the driver or use USB Wi-Fi adapter).
Try connecting another phone - if the problem persists, the problem is with the laptop.
How to share internet from a laptop to a Smart TV?
The process is the same as for a phone:
- Set up distribution using one of the methods above.
- On Smart TV Open network settings and select the access point you created.
- Enter the password (use the remote control or the app) TV Remote on the phone).
If your TV doesn't see the network, check if it supports it. Wi-Fi 5 GHz (some budget models only work on 2.4 GHz).
Is it possible to share Wi-Fi from a laptop without a password?
Technically yes, but it is extremely unsafe. Windows And Linux You can create an open network with the command:
netsh wlan set hostednetwork mode=allow ssid="OpenWiFi" keyUsage=persistent
(without parameter key), but then everyone within range will be able to connect to your network. This is a risk:
- Traffic theft (torrents, streaming).
- Hacking devices on your local network.
- IP blocking by the operator for other people's actions.
Use this mode only in isolated networks (for example, for testing).