This situation is familiar to many: at home or while traveling, you urgently need internet on your phone, but all you have is a computer with a wired connection or mobile data. Is it possible to use a PC as a router and share Wi-Fi with your smartphone? Yes, and it's easier than it seems. Modern operating systems allow you to turn a laptop or desktop computer into a full-fledged access point without additional equipment.
In this article you will find 5 proven methods Share internet from your PC to your phone using standard tools Windows 10/11 to universal solutions for macOS And LinuxWe'll cover security settings, common errors, and give tips on how to speed up this type of connection. And if you frequently need to share your internet connection, there's a guide at the end of the article. FAQ with answers to the most difficult questions.
Spoiler: for most users, the operating system's built-in tools will be sufficient. But if you want more flexibility—for example, sharing Wi-Fi with speed limits or on a schedule—third-party utilities will come in handy. We'll cover those, too.
1. Share Wi-Fi via Mobile Hotspot in Windows 10/11
The easiest way is to use the built-in function Mobile Hotspot**It works on all versions. Windows starting from 10th and does not require administrator rights (if you are already logged in under an account with such rights). The main requirement is that your computer must have Wi-Fi adapter, which supports the mode SoftAP (this is 99% of modern laptops and many PCs with separate Wi-Fi modules).
To enable hotspot:
- Open
Settings → Network & Internet → Mobile Hotspot. - In the "Sharing" drop-down menu, select the connection through which the PC receives the Internet (for example,
EthernetorLocal Area Network Connection). - Click "Edit" next to the "Network Name" and "Password" fields to set your own settings (the password must be at least 8 characters long).
- Move the "Share allowed" slider to the "On" position.
Now, on your phone, find a new Wi-Fi network with the specified name, connect to it and enter the password. Ready! The internet should work automatically. If not, check that the internet connection is enabled on your PC. Connection Sharing (more on this below).
Wi-Fi adapter driver updated|Computer connected to internet (wired or 4G modem)|VPN or proxy disabled on phone|Antivirus not blocking network connections-->
⚠️ Attention: If the Internet disappears on the PC itself after turning on the hotspot, check the settingsPublic accessVControl Panel → Network and Internet → Network and Sharing Center → Change adapter settingsRight-click on the main connection (for example,Ethernet), select Properties → Sharing tab and make sure that the checkbox is checked next to Allow other network users to connect through your Internet connection.
2. Command Line: Sharing Wi-Fi Without a GUI
If the Mobile Hotspot does not work (for example, due to an error Failed to set up mobile hotspot), you can start the distribution through command lineThis method is universal and often saves on older versions. Windows or in case of driver conflicts.
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=MyWiFi key=12345678
netsh wlan start hostednetwork
Where:
- 🔄
MyWiFi— the name of your network (can be replaced with any). - 🔐
12345678— password (minimum 8 characters).
After executing the second command, a new network should appear on the phone. But this is not enough to access the Internet! Need to open General access:
- Go to
Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings. - Find the connection through which the PC receives the Internet (for example,
Ethernet), right-click on it → “Properties” → “Access” tab. - Check the box next to “Allow other network users to connect through your Internet connection” and select the new connection from the drop-down menu (it will be called
Local Area Connection* X, where X is a number).
⚠️ Note: If Wi-Fi sharing does not resume automatically after restarting your PC, add the commandnetsh wlan start hostednetworkVAutoloadTo do this, create a filestart_wifi.batwith this line and place it in the folderC:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.
3. Third-party programs: more possibilities
Built-in tools Windows are suitable for one-time tasks, but if you need advanced features - for example, Speed Limit, blacklist of devices or automatic shutdown by timer — It's worth considering third-party utilities. We tested three of the most reliable programs.
| Program | Advantages | Flaws | Price |
|---|---|---|---|
| Connectify Hotspot | Intuitive interface, support Wi-Fi 6, ad blocker |
Paid license for all functions | From $35/year |
| MyPublicWiFi | Free, lightweight, shows connected devices | No Russian language, limited settings | For free |
| Virtual Router Plus | Open source, portable version | Hasn't been updated since 2016, may contain bugs | For free |
Let's look at the setup using an example MyPublicWiFi (you can download it from the official website):
- Install and run the program as administrator.
- In the field
Network Name (SSID)Enter the network name. - IN
Network Key— password (minimum 8 characters). - In the drop-down menu
Internet Sharingselect your primary connection (egEthernet). - Click
Set up and Start Hotspot.
The program will automatically configure sharing and start distribution. In the window MyPublicWiFi you will see a list of connected devices and their MAC addresses. It's convenient, if you need to track who is using your network.
How do I block a device on MyPublicWiFi?
In the main program window, find MAC address unwanted device (eg A4:1B:2C:3D:4E:5F). Copy it, open the file mypublicwifi.conf in the program folder and add the line deny_mac=A4:1B:2C:3D:4E:5FSave the file and restart the hotspot.
4. Sharing Wi-Fi with macOS (for MacBook owners)
On computers Apple the process is even simpler than on Windows. System macOS supports Wi-Fi internet distribution out of the box, and you can share both a wired connection and traffic with iPhone through USB or Bluetooth.
Instructions for macOS Ventura/Monterey/Sonoma:
- Open
System Preferences → Sharing. - In the left menu, select
Public Internet. - In the "Share connection" field, select the Internet source (for example,
EthernetorThunderbolt Bridge, if connected to iPhone). - In the "For computers using" section, check the box
Wi-Fi. - Click
Wi-Fi settings, set the network name (SSID), select the channel (betterAuto) and set a password (we recommendWPA2/WPA3). - Return to the Sharing window and check the box to the left of Internet Sharing. Click Start.
Important: On MacBooks with a chip Apple Silicon (M1/M2/M3) Wi-Fi distribution works more stably than on models with IntelIf your phone's internet connection is slow, try changing the Wi-Fi channel in the settings or turning it off. Bluetooth (it may cause interference).
5. Wi-Fi distribution with Linux (Ubuntu, Mint, Fedora)
Users Linux can distribute Wi-Fi through the terminal or graphical utilities like NetworkManagerWe will consider a universal method using hostapd And dnsmasq, which works on most distributions.
Open the terminal and run the commands in order:
sudo apt update && sudo apt install hostapd dnsmasq -ysudo systemctl stop hostapd
sudo systemctl stop dnsmasq
Now create a configuration file for hostapd:
sudo nano /etc/hostapd/hostapd.conf
Paste the following text into it (replace MyWiFi And 12345678 to your network name and password):
interface=wlan0driver=nl80211
ssid=MyWiFi
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
Save the file (Ctrl + O, then Enter) and close the editor (Ctrl + X). Next, configure dnsmasq for distributing IP addresses:
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
sudo nano /etc/dnsmasq.conf
Add the following lines:
interface=wlan0
dhcp-range=192.168.100.100,192.168.100.200,255.255.255.0,24h
All that remains is to launch the services:
sudo systemctl start hostapd
sudo systemctl start dnsmasq
If everything is set up correctly, a new network will appear on your phone. MyWiFi. Important: After rebooting the PC, the distribution will have to be started again (or set up autostart via systemd).
⚠️ Note: On some distributions (e.g. Fedora) instead ofhostapda package may be requiredhostapd-wpe. Also check that your Wi-Fi adapter supports the mode.AP(the list of compatible chipsets is on the website Wireless Kernel Documentation).
6. Typical problems and their solutions
Even with proper configuration, Wi-Fi sharing from a PC can be unstable. We've compiled the most common mistakes and ways to correct them.
Problem 1: The phone connects to the network, but the Internet does not work.
- 🔌 Check that it is enabled on your PC
General accessfor the main connection (see section 2). - 🔄 Reset network settings:
ipconfig /release→ipconfig /renew(For Windows). - 📱 Forget the network on your phone and reconnect.
Problem 2: Error "Unable to set up mobile hotspot" in Windows.
- 🔧 Update your Wi-Fi adapter driver (download from the manufacturer's website, not through
device Manager). - 🛠️ Launch
Network troubleshootingVSettings → Network and Internet → Status. - 🔄 Try turning on the hotspot through
command line(section 2).
Problem 3: Slow internet speed on the phone.
- 📶 Change the Wi-Fi channel in the router settings (if the PC is connected to it) or in the hotspot settings (for example, from 6 to 11).
- 🔌 Disable downloads, torrents, and online games on your PC—they eat up your bandwidth.
- 🔄 If you use Windows, turn it off
TCP/IP autoconfiguration:netsh interface tcp set global autotuninglevel=restricted
Problem 4: On macOS The hotspot disconnects after a few minutes.
- ⚡ Check your power saving settings:
System Preferences → Battery→ Uncheck "Slightly dim the display when running on battery." - 🔄 Restart the service
Internet Sharing:sudo ifconfig awdl0 downsudo ifconfig awdl0 up
7. Security: How to protect your network
By sharing Wi-Fi from your computer, you're opening up access to your local network. This can be dangerous if someone else connects to the hotspot. Follow these rules to minimize the risks:
1. Use a complex password
- 🔐 The password must be at least 12 characters long and include letters, numbers, and special characters (e.g.
WiFi@Home2026!). - 🚫 Don't use simple combinations like
12345678orqwerty.
2. Enable encryption WPA3 (or WPA2, If WPA3 not supported)
- 🔒 In Windows Encryption is configured automatically when creating a hotspot.
- 🖥️ In Linux check the line
wpa=2in the filehostapd.conf(see section 5).
3. Limit the number of connected devices
- 📱 In programs like Connectify or MyPublicWiFi You can set a limit (for example, only 2 devices).
- 🔧 In Linux add in
hostapd.conflinemax_num_sta=2.
4. Turn off the hotspot when you don't need it
- ⏻ In Windows This can be done with one button in the Mobile Hotspot.
- 🖥️ In Linux execute:
sudo systemctl stop hostapdsudo systemctl stop dnsmasq
5. Set up a firewall
- 🛡️ In Windows open
Windows Defender Firewall → Advanced settingsand create a rule that blocks incoming connections for the Public network zone. - 🐧 In Linux use
ufw:sudo ufw allow from 192.168.100.0/24 to any port 80,443sudo ufw deny from 192.168.100.0/24 to any port 22
FAQ: Answers to Frequently Asked Questions
Is it possible to share Wi-Fi from a PC if I only have mobile Internet (4G/5G)?
Yes, but you need it for that USB modem or smartphone in modem modeConnect the modem to your PC, wait for the internet to appear, and start sharing via Mobile Hotspot or the command line. Important: Some operators block traffic distribution (especially unlimited traffic), so check the terms of your tariff.
Why does my phone connect to the network, but websites won't open?
There may be several reasons:
- It's not enabled on PC.
General access(see section 2). - DNS servers are not specified. Try specifying them manually.
8.8.8.8(Google) or1.1.1.1(Cloudflare) in the connection settings on your phone. - Your antivirus or firewall is blocking traffic. Temporarily disable them to check.
How to share Wi-Fi from a PC to multiple phones simultaneously?
Built-in tools Windows And macOS allow you to connect up to 8 devices (OS limitation). If you need more, use programs like Connectify Hotspot (up to 25 devices in the paid version). Linux the limit depends on the settings dnsmasq (default is 100 devices, but this will overload most adapters).
Is it possible to share Wi-Fi from a PC to a Smart TV or gaming console?
Yes, the principle is the same: turn on the hotspot on your PC, and on Smart TV (Samsung, LG, Sony) or consoles (PlayStation, Xbox, Nintendo Switch) connect to the created network. Important: some devices (eg Nintendo Switch) do not support encrypted networks WPA3 - in this case, select WPA2.
How to speed up distributed Wi-Fi?
The speed depends on several factors:
- 📶 Wi-Fi channel: Use channels 1, 6 or 11 (they overlap the least). Windows you can change the channel via
Device Manager → Adapter Properties → Advanced → Channel. - 🖥️ Wi-Fi mode: if your adapter supports
802.11ac(Wi-Fi 5) or802.11ax(Wi-Fi 6), select it in the settings. - 🔌 PC load: Close background programs, especially torrents and cloud syncs.
- 📱 Distance: Keep your phone closer to your PC - walls and obstacles will reduce speed.