Modern smartphones have become fully-fledged work tools, but their capabilities are limited without a stable internet connection. What if you don't have a router handy, but your computer has a wired internet connection or a mobile network? Sharing Wi-Fi from your PC to your phone is easy—no additional equipment or complicated setup required.
In this article you will find 5 proven methods organize an access point from a laptop or desktop computer, including Windows 10/11, macOS And LinuxWe will cover not only the basic settings, but also Hidden settings to increase speed and protect against unauthorized connectionsWe'll pay special attention to common errors that prevent a phone from detecting the shared network, and how to fix them.
1. Preparing your computer for Wi-Fi distribution
Before turning your PC into an access point, make sure it meets the minimum requirements. The most important requirement is the presence of Wi-Fi adapter, which supports the mode Hosted Network (virtual access point). In 95% of cases, this mode is available on laptops and PCs with external USB adapters manufactured after 2012.
You can check support through command line:
netsh wlan show drivers
Look for the line Hosted network support: yesIf it says "no," update the adapter driver on the manufacturer's website (Intel, Qualcomm Atheros, Realtek and others).
- 🔧 Updating driversDownload the latest version from the official website, not through the Device Manager—it often contains outdated versions.
- 🔌 Connection type: The computer must be connected to the Internet via
Ethernet,3G/4G modemor the secondWi-Fi adapter(if you distribute mobile Internet). - 🛡️ Antivirus: Temporarily disable firewalls (Avast, Kaspersky, Windows Defender), if they block the creation of the network.
⚠️ Attention: On desktop PCs without built-in Wi-Fi, an external adapter (from 500 rubles) is required. Cheap chip-based models Realtek RTL8188 often do not support access point mode - choose adapters markedAP ModeorSoftAP.
2. Method 1: Sharing Wi-Fi via the command line (Windows)
The most reliable method for Windows 10/11, which works even when the graphical interface refuses to create a network. All actions are performed through Command prompt (administrator).
Step 1: Run Command Prompt as administrator and enter:
netsh wlan set hostednetwork mode=allow ssid="Network_Name" key="Password_of_8_characters" keyUsage=persistent
Example: ssid="MyHotspot" key="12345678"The password must contain numbers and letters - this is a safety requirement WPA2-PSK.
Step 2: Activate the network:
netsh wlan start hostednetwork
Step 3. Enable Internet Sharing:
- Open
Control Panel → Network and Sharing Center → Change adapter settings. - Find your primary connection (eg.
Ethernet), right-click →Properties→ tabAccess. - Check the box
Allow other network users to share your Internet connection. - On the list
Connecting a home networkselect the created network (the name will start withLocal Area Connection* X).
☑️ Check before connecting your phone
⚠️ Attention: After restarting your PC, Wi-Fi sharing will be disabled. To avoid having to re-enter commands, create.bat-file with text:@echo offnetsh wlan start hostednetwork
pauseSave it to your desktop and run it as administrator every time you turn on your computer.
3. Method 2: Mobile hotspot in Windows 10/11
Modern versions of Windows have a built-in feature Mobile hotspot, which simplifies internet sharing. It's more stable than the command line, but has limitations: for example, it doesn't allow you to manually select a Wi-Fi channel.
Instructions:
- Open
Settings → Network & Internet → Mobile Hotspot. - In the field
Sharing an Internet connectionselect the source (usuallyEthernetorWi-Fi). - Click
Changeto set the network name and password (minimum 8 characters). - Turn on the slider
Allow other devices to use my internet connection.
Advantages of the method:
- 🔄 Automatic activation after reboot (if the option is enabled in the settings).
- 📱 Support up to 8 devices simultaneously (versus 5 on the command line).
- 🛡️ Automatic encryption WPA2-PSK.
Flaws:
- ⚠️ Doesn't work on Windows 7 and older builds Windows 10 (before version 1607).
- ⚠️ It is not possible to change the Wi-Fi channel, which may cause interference if there are many networks nearby.
4. Method 3: Sharing Wi-Fi from macOS
On computers Apple (MacBook, iMac) Internet distribution is configured through the function General accessThis method works stably, but requires administrative rights.
Step-by-step instructions:
- Open
System Preferences → Sharing. - In the left menu, select
Public Internet. - In the field
General connectionPlease provide the source (eg.EthernetorThunderbolt Bridge). - In the section
For computers usingmarkWi-Fi. - Click
Wi-Fi settingsand ask:- Network Name (
SSID) - Channel (recommended)
6or11for minimal interference) - Safety:
WPA2/WPA3 Personal - Password (minimum 8 characters)
- Network Name (
| Parameter | Recommended value | Explanation |
|---|---|---|
| Wi-Fi channel | 6 or 11 |
Less overlap with neighboring networks |
| Encryption | WPA2/WPA3 |
Maximum protection against hacking |
| Range | 2.4 GHz |
Better compatibility with older phones |
| Max devices | 10 | macOS limitation to one access point |
⚠️ Attention: On macOS Monterey and newer, when you first enable sharing, the system may ask for confirmation via Touch ID or your account password. Failure to do so will result in the network becoming unavailable for connection.
5. Method 4: Sharing Wi-Fi with Linux (Ubuntu, Debian, Fedora)
In distributions based on Linux Wi-Fi distribution is carried out through utilities nmcli (NetworkManager) or hostapdThe first method is simpler and suitable for one-time tasks, while the second is for a permanent access point with advanced settings.
Method 1: Via NetworkManager (for beginners)
sudo nmcli dev wifi hotspot ifname wlan0 ssid "MyLinuxHotspot" password "12345678"
Where wlan0 — the name of your Wi-Fi adapter (check via ip a).
Method 2: Via hostapd (for experienced users)
Install packages:
sudo apt install hostapd dnsmasq
Edit the config /etc/hostapd/hostapd.conf:
interface=wlan0driver=nl80211
ssid=MyLinuxAP
hw_mode=g
channel=6
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
Start the access point:
sudo systemctl start hostapd
To automatically start at boot:
sudo systemctl enable hostapd
How to check if the access point is working?
Run the command iwconfig and find the line with Mode:MasterIf it's not there, check the adapter driver or access rights.
6. Method 5: Sharing 3G/4G Internet from your phone to your computer and back
Situation: You only have internet on your phone (mobile data), but you need to share it with another phone via a computer. This is possible, but it requires two steps:
- Connect your phone to your PC via
USBand turn it onUSB modem(in phone settings). - On your computer, share the received Internet connection as Wi-Fi (using any of the methods above).
- 📶 Suitable for places where there is no wired internet.
- 🔄 You can "extend" the 4G signal if your phone has better network coverage than the other device.
- ⚠️ Double traffic consumption (phone → PC → second phone).
- ⚠️ Delays may occur due to double routing.
- 🔐 Complex password: Use a combination of 12+ characters with letters, numbers and special characters (for example,
k7#pL9!qR2$v). - 🔄 Changing your password regularly: Change it every 1-2 weeks if the network is used in public places.
- 📵 Network shutdown: Turn off distribution when it is not needed (via
netsh wlan stop hostednetworkor the button inMobile hotspot). - 👤 Device control: In the router settings (if you are distributing through it), enable filtering by
MAC addresses. - 🛡️ Set up
firewallto block unwanted connections: - 🔍 Use utilities like Wireshark or GlassWire to monitor traffic.
- Use
Bluetooth connection(speed up to 3 Mbps). - Connect your phone to your PC via
USBand turn onUSB modem(but this is a reverse distribution). - Wi-Fi adapter limitations (e.g.
802.11ninstead of802.11ac). - Dual routing (traffic passes through two devices).
- Interference on the 2.4 GHz channel (switch to 5 GHz if the adapter supports it).
- For Smart TV (Samsung, LG) may be required static IP. Set it manually in the TV settings (for example,
192.168.137.100). - PlayStation or Xbox may not connect to the network with
WPA3- useWPA2-PSK. - If the device does not see the network, try changing
Wi-Fi regionin the adapter settings onUSA(sometimes helps when standards are incompatible). - The virtual machine must have
network adapter in Bridge mode(Bridged). - The host system's Wi-Fi adapter must support
promiscuous regime. - Speed will be 40-50% slower due to virtualization overhead.
- On the second PC, manually specify
DNS:8.8.8.8And8.8.4.4(Google). - If access to local resources (printers, network folders) does not work, disable
firewallon both devices. - For games on a local network (for example, Minecraft) use
static IPin one range (for example,192.168.137.1And192.168.137.2).
Advantages:
Flaws:
⚠️ Attention: Some operators (eg. Megaphone, Beeline) block mobile internet access via a USB modem unless you have an unlimited data plan. In this case, the network will still work, but the speed will drop to 64 kbps.
7. Common mistakes and their solutions
Even with the correct settings, the phone may not connect to the shared network. Here TOP 5 problems and their solutions:
| Problem | Cause | Solution |
|---|---|---|
| The phone sees the network, but does not connect. | Incorrect password or encryption type | Check the case of the characters in your password. Use only WPA2-PSK. |
| There is a connection, but no internet | Sharing is not enabled in the adapter settings. | Check the box Allow other users... (see Method 1). |
| Network disappears after sleep/hibernation | Power saving turns off the adapter | IN Device Manager Disable the "Turn off device to save power" permission. |
| Low speed (less than 1 Mbps) | Channel interference or provider restrictions | Change your Wi-Fi channel to 6 or 11. If you're sharing mobile data, check your data plan's limits. |
| Error: "Unable to set up mobile hotspot" | IP address conflict or blocking by antivirus software | Run in command line: netsh winsock reset, then restart your PC. |
8. Security: How to protect your network
An open hotspot poses a risk not only to your traffic but also to the data on connected devices. Follow these rules:
For advanced users:
netsh advfirewall firewall add rule name="Block WiFi Intruders" dir=in interface=type=wireless action=block
⚠️ AttentionIf you're sharing internet in a cafe, airport, or other public place, avoid using online banking or entering passwords on connected devices. Attackers can intercept data through protocol vulnerabilities. WPA2 (attack KRACK).
FAQ: Frequently Asked Questions
Is it possible to share Wi-Fi from a computer without a Wi-Fi adapter?
No. To create an access point you need Wi-Fi module, built-in or external (USB). If not, alternatives:
Why is the speed when sharing from a PC lower than directly?
This is normal: up to 100 are lost during distribution. 30% speed because of:
To reduce losses, disable background Windows updates (Settings → Update & Security → Advanced Options → Delivery Optimization).
How to share Wi-Fi from a computer to a Smart TV or game console?
The process is identical to distributing to a phone. Features:
Is it possible to distribute Wi-Fi from a virtual machine (VirtualBox, VMware)?
Technically possible, but with some caveats:
For VirtualBox Run the following in the guest OS terminal:
sudo ifconfig wlan0 promisc
How to share Wi-Fi from one computer to another computer?
The process is no different from distributing to a phone, but there are some nuances: