How to connect your phone to Wi-Fi via a computer: all the methods + troubleshooting

Connecting a phone to Wi-Fi via a computer is a challenge faced by users in a variety of situations, from the absence of a router to the need to create a temporary hotspot. Unlike a standard home network connection, this requires configuring the PC itself as an internet source or intermediary. This article covers all the current methods, from sharing Wi-Fi from a laptop to using a USB cable and specialized software.

We will cover not only the basic methods for Windows 10/11 And macOS, but also rare scenarios: for example, how to connect iPhone to the network created through Linux, or what to do if your phone doesn't see the network being shared. Particular attention is paid to security — how to protect a temporary access point from unauthorized connections and why you shouldn't use open networks to transmit confidential data.

1. Sharing Wi-Fi from your computer to your phone using built-in Windows tools

The most universal way is to turn a laptop or PC with Wi-Fi adapter to the access point. In Windows 10/11 This can be done without third-party programs, but there are some nuances with drivers and security settings.

First of all, check if your adapter supports the mode Hosted NetworkTo do this:

  1. Open Command line as administrator (click Win + XTerminal (Administrator)).
  2. Enter the command:
    netsh wlan show drivers
  3. Find the line Hosted network supportIf it says there Yes — we can continue.

If support is available, run the following commands in order (replacing MyWiFi And 12345678 to your network name and password):

netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=12345678

netsh wlan start hostednetwork

Hosted Network driver support|Adapter enabled in Device Manager|Antivirus not blocking network|Password contains ≥8 characters-->

After this, a new network will appear on your phone. MyWiFiConnect to it by entering the password. If the internet is not working, check public access:

  1. Open Control Panel → Network and Sharing Center → Change adapter settings.
  2. Find an internet connection (eg. Ethernet), right-click → Properties → tab Access.
  3. Check the box Allow other network users to share your Internet connection and select the created network (Local Area Connection* X).

2. Alternative ways to share Wi-Fi from a PC to Android/iPhone

Built-in Windows tools don't always work reliably. Let's consider alternatives:

  • 🖥️ Specialized programs: MyPublicWiFi, Connectify Hotspot or mHotspotThey offer advanced settings (speed limiting, device blacklisting) and often handle drivers better.
  • 🔄 USB cable: Connecting your phone to your PC via USB with the option enabled USB modem (on Android) or Public Internet (on iPhone). The downside is that the phone won't be mobile.
  • 🔌 Ethernet adapter for phone: A rare but working method for devices with support USB-C/OTGAn adapter and static IP configuration are required.

For macOS the process is simpler: open System Preferences → Sharing, select Public Internet and indicate the source (for example, Ethernet). Then in For computers using mark Wi-Fi and set up the network name/password.

Built-in Windows tools|Third-party programs|USB cable|Via a router-->

3. Connecting your phone to a Wi-Fi router via a computer (indirect method)

If you have a router but your phone can't connect to it (for example, due to an authentication error), your computer can help diagnose the problem. Here's how:

  1. Connect your PC to the router via cable or Wi-Fi.
  2. Open the router's web interface (usually at 192.168.0.1 or 192.168.1.1, login/password see on the device sticker).
  3. Check:
    • 🔒 Security mode (must be WPA2-PSK or WPA3).
    • 📡 Wi-Fi channel (if automatic, try manually selecting 1, 6, or 11 for 2.4 GHz).
    • 📱 MAC filtering (if enabled, add the phone's MAC address).

A critical detail: if the router supports dual-band Wi-Fi (2.4 GHz and 5 GHz), and the phone only supports 2.4 GHz (especially relevant for older models iPhone 5/SE or budget Android), make sure the network is broadcasting in a compatible range.

Problem on the phone Possible cause Solution via PC
"Connecting... endlessly" Incorrect security mode Change WPA3 on WPA2-PSK in the router settings
"Saved, but without internet" DHCP does not issue IP Enable DHCP or assign a static IP to the phone
"Incorrect password" Special characters in passwords Set a password using Latin letters and numbers
How to find out the MAC address of a phone?

On Android: Settings → About phone → General information → Wi-Fi MAC address.

On iPhone: Settings → Wi-Fi → (i) next to the network → Wi-Fi Address.

4. Solving common connection errors

Even after proper setup, problems may still arise. Here are typical scenarios and their solutions:

⚠️ Attention: If you are distributing Wi-Fi from a PC that is itself connected to the Internet via VPN, your phone may not be able to access some websites (such as banking websites). This is due to VPN provider restrictions.
  • 🚫 "Unable to connect to the network":
    • Check that the PC is enabled Internet access sharing (see section 1).
    • Disable your firewall or antivirus (eg. Kaspersky may block distribution).
  • 🔄 The network appears and disappears:
    • Update your Wi-Fi adapter driver via device Manager.
    • Try changing the channel manually (for example, from 6 to 11).
  • 🐢 The internet works, but it's very slow.:
    • Limit the number of connected devices (optimally no more than 3-4).
    • If you distribute through 3G/4G modem, check the speed on your PC - it may be an issue with your operator.

For diagnostics on your phone, use apps like WiFi Analyzer (Android) or Network Analyzer (iOS). They will show the signal strength, channel load, and help you choose the optimal settings.

5. Security: How to protect your network

A temporary access point on a PC is more vulnerable than a home router. Follow these rules:

  • 🔐 Password: Use a combination of ≥12 characters with letters, numbers and special characters (e.g. WiFi@Temp#2026$Pc).
  • 🕵️ Hiding the network: In the team netsh add parameter ssid=MyWiFi key=12345678 keyUsage=persistent - This will prevent the network name (SSID) from being broadcast, but you will have to enter it manually on your phone.
  • ⏱️ Time limit: Turn off distribution when it is not needed (using the command netsh wlan stop hostednetwork).

For Windows 11 there is an additional option - Mobile hotspot (Settings → Network & Internet → Mobile Hotspot). Here you can limit the number of devices and enable power saving, but the functionality is limited compared to netsh.

⚠️ Attention: If you're sharing Wi-Fi in a public place (like a cafe or train station), never use the same password as your home network or accounts. Attackers can intercept your traffic and access your data.

6. Features for different phone models

Not all phones connect to cellular networks the same way. Here's what you need to know:

  • 📱 Android (Samsung, Xiaomi, Google Pixel):
    • On Xiaomi may need to be disabled Adaptive Wi-Fi (Settings → Wi-Fi → Advanced).
    • On Samsung With One UI Sometimes resetting network settings helps (Settings → General Management → Reset → Reset Network Settings).
  • 🍎 iPhone (iOS):
    • If iPhone does not connect to the network with WPA3, change the security mode to WPA2.
    • To connect to a hidden network (SSID hidden) enter the network name manually in Settings → Wi-Fi → Other network.
  • 🤖 Obsolete devices:
    • Phones older than 2015 (eg. Samsung Galaxy S5 or iPhone 5) may not support 5 GHz - set up the network only 2.4 GHz.

For phones with custom firmware (For example, LineageOS) manual configuration may be required IP-addresses. In this case, please indicate the following on your phone:

IP: 192.168.137.X (where X is a number from 2 to 254)

Mask: 255.255.255.0

Gateway: 192.168.137.1

DNS: 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare)

FAQ: Frequently asked questions about connecting your phone to Wi-Fi via a PC

Is it possible to distribute Wi-Fi from a computer if it is connected to the Internet via a USB modem (3G/4G)?

Yes, but the speed will be limited by the mobile internet bandwidth. In addition, some operators (for example, Megaphone or Beeline) can block Internet distribution from USB modems - in this case you will need VPN or change of tariff.

Why does my phone connect to the network, but websites won't open?

There are several reasons:

  1. It's not enabled on PC. Internet access sharing (see section 1).
  2. DNS servers are not responding - try entering them manually 8.8.8.8 on the phone.
  3. Antivirus or firewall is blocking traffic (disable them temporarily to check).

How to share Wi-Fi from a PC without a password (open network)?

Technically, this is possible with the command netsh wlan set hostednetwork mode=allow ssid=MyWiFi key= (without password after key=), But highly not recommendedIn the open network:

  • Anyone who connects will be able to intercept your traffic (including logins/passwords).
  • Your PC will become vulnerable to attacks (for example, through vulnerabilities SMB).
  • In some countries, sharing public Wi-Fi may be considered illegal (you are responsible for the actions of those who connect).

Is it possible to share Wi-Fi from a computer? Linux?

Yes, but the process is more complicated than in Windows. You will need:

  1. Install hostapd And dnsmasq:
  2. sudo apt install hostapd dnsmasq
  3. Configure configuration files /etc/hostapd/hostapd.conf And /etc/dnsmasq.conf.
  4. Enable traffic forwarding:
  5. sudo sysctl net.ipv4.ip_forward=1

Detailed instructions vary by distribution (Ubuntu, Fedora etc.).

How many devices can be connected to a shared Wi-Fi connection from a PC?

The theoretical limit is up to 254 devices (due to the peculiarities IPv4), but in practice:

  • On Wi-Fi adapters Budget laptops have 3-5 devices that work stably.
  • When connecting ≥10 devices, the speed drops by 2-3 times.
  • For a large number of clients, it is better to use a router.