How to Share Wi-Fi from an All-in-One PC: From the Command Line to a Virtual Router

An all-in-one PC is essentially a computer, but with an integrated screen and a compact case. Although it lacks discrete network modules (like laptops), it can be used to distribute Wi-Fi in several ways. The key is to configure the software correctly, as hardware limitations (such as the lack of a physical button) Wi-Fi) are not critical here.

In this article we will look at three working methods: through command line (universal for all versions of Windows), built-in mobile hotspot (the easiest way) and third-party utilities like Connectify or mHotspot (for advanced settings). You'll also learn how to diagnose common errors like "Unable to set up mobile hotspot" or no internet on connected devices.

Important: If your all-in-one PC is not equipped with Wi-Fi adapter (which is unlikely for models after 2015), you won't be able to share a wireless network. You can check for the adapter's presence in Device Manager (chapter Network adapters) - look for devices with names like Wireless>, Wi-Fi or 802.11.

1. Checking hardware and software requirements

Before setting up distribution, make sure your all-in-one PC meets two key conditions:

  • 🔄 Availability of a Wi-Fi adapterWithout it, the all-in-one PC will not be physically able to broadcast the network. Device Manager (called through Win + X) check the section Network adaptersIf only there Ethernet- controller - you will have to buy an external USB adapter (for example, TP-Link TL-WN725N).
  • 🖥️ Active internet connectionThe monoblock must receive the Internet itself - via cable (via Ethernet) or via another Wi-Fi (if the adapter supports the mode) Ad-Hoc). You can only share a connection that is already working.
  • 🔒 Administrator rightsWithout them, it is impossible to change network settings or run the command prompt with the required privileges.

Also check your Windows version:

  • 🪟 Windows 10/11 — support all three methods (command line, mobile hotspot, third-party utilities).
  • 🪟 Windows 7/8 — the mobile hotspot is unavailable, the command line and programs remain.
⚠️ Note: If you are connected to a corporate network (e.g., at an office or university), Wi-Fi sharing may be blocked by security policies. In this case, try using USB modem or check the rules with your network administrator.
📊 What kind of all-in-one PC do you have?
Apple iMac
HP Pavilion
Lenovo IdeaCentre
Dell Inspiron
ASUS Zen AiO
Another

2. Method 1: Sharing Wi-Fi via the command line (netsh)

This method works on all versions of Windows and doesn't require any additional software. The downside is that you have to enter commands manually, but we'll walk you through each step in detail.

Open command prompt as administrator:

  1. Click Win + S, enter cmd.
  2. Select Run as administrator.
  3. Confirm the action in the window UAC.

Now enter the following commands in sequence (press after each one) Enter):

netsh wlan set hostednetwork mode=allow ssid="Network_Name" key="Network_Password" keyUsage=persistent

netsh wlan start hostednetwork

Replace:

  • Network_name - to any name (for example, MyMonoblockWiFi).
  • Network_Password — a password of at least 8 characters (for example, 12345678Aa!).

After executing the second command, you will see the message: The hosted network is launchedNow we need to enable internet sharing:

  1. Open Control Panel → Network and Internet → Network and Sharing Center.
  2. Click Changing adapter settings.
  3. Find your primary connection (eg. Ethernet or Wireless network), right-click → Properties.
  4. Go to the tab Access, check the box Allow other network users to share your Internet connection.
  5. From the drop-down list, select the new connection (it will be called Local Area Connection* X, where X is a number).

Done! Other devices can now connect to your network. To stop distribution, enter in the command line:

netsh wlan stop hostednetwork
⚠️ Attention: After rebooting the all-in-one PC, Wi-Fi distribution via netsh will be disabled. To resume it, run the command again. netsh wlan start hostednetworkYou can create a task to run automatically. .bat-file or task in Task Scheduler.

Make sure the command prompt displays the message "The hosted network is running" | Check that a new connection named "Local Area Connection*" has appeared in "Network Connections" | Connect a test device (smartphone/tablet) to the created network | Try opening any website on the connected device-->

3. Method 2: Mobile hotspot (Windows 10/11)

The easiest method is to use the built-in function mobile hotspotIt's available in Windows 10 (starting with version 1607) and Windows 11. The main advantage is that you don't need to enter commands or install programs.

Instructions:

  1. Open Settings → Network & Internet → Mobile Hotspot.
  2. In the field Sharing an Internet connection select your active connection (for example, Ethernet).
  3. Click Change next to Network name And Network passwordto set your parameters.
  4. Turn on the switch Allow other devices to use my internet connection.

By default the network will be called DESKTOP-XXXXXX (where XXXXXX is part of your PC's name), and the password will be generated automatically. You can change them to something more memorable.

If an error appears after turning on the hotspot Failed to set up mobile hotspot, try the following steps:

  • 🔧 Restart your all-in-one PC and try again.
  • 🔧 Update your Wi-Fi adapter driver via device Manager (right click on the adapter → Update driver).
  • 🔧 Launch Network troubleshooting in Windows settings.
  • 🔧 If you use VPN or proxy, please disable them before setting up the hotspot.
Error Possible cause Solution
Failed to set up mobile hotspot Conflict with antivirus or firewall Temporarily disable your antivirus (for example, Kaspersky or Avast) and try again
The devices connect, but the internet doesn't work. Sharing is not configured Check your sharing settings in Network and Control Center (see Method 1, step 5)
The network is not displayed on devices The Wi-Fi adapter does not support the mode SoftAP Update your driver or use a third-party utility (Method 3)
Error 1068: The service failed to start. Service disabled WLAN Automatic Configuration Service Run it through services.msc (enter in Win + R)

4. Method 3: Third-party programs for distributing Wi-Fi

If built-in Windows tools don't work (for example, due to an outdated adapter or corporate restrictions), you can use third-party utilities. They offer additional features such as:

  • 📊 Connected device statistics (speed, traffic).
  • 🔄 Automatic launch when turning on the PC.
  • 🔒 Device filtering by MAC addresses.

The most popular programs:

  • 🌐 Connectify Hotspot — paid, but with a trial period. Supports seeding via 3G/4G modems and has a built-in firewall.
  • 🌐 mHotspot — free, simple interface, but may contain advertising.
  • 🌐 Virtual Router Plus — open source, but has not been updated since 2016 (may not work on Windows 11).

Let's look at the setup using an example mHotspot:

  1. Download the program from official website (avoid third party sources!).
  2. Install and run the utility as administrator.
  3. In the field Hotspot Name enter the network name in Password - password.
  4. IN Internet Source select your active connection (for example, Ethernet).
  5. Click Start Hotspot.

Important: Some antivirus programs (for example, Avast or Bitdefender) may block work mHotspot as suspicious activity. Add the program to the exceptions list or temporarily disable protection.

How to bypass antivirus blocking?

If the antivirus removes mHotspot as a threat, download the program in the archive (.zip), unzip it into a separate folder and run it mHotspot.exe from there. You can also add the program folder to the antivirus exclusions through its settings (section Exceptions or Whitelist).

5. Optimizing distribution speed and stability

If your all-in-one PC's Wi-Fi is slow or drops frequently, try the following settings:

  • 📶 Change Wi-Fi channelBy default, Windows selects a channel automatically, but it may be overloaded. Use the utility Wi-Fi Analyzer (for Android) or inSSIDer (for PC) to find the least loaded channel (eg. 6 or 11 in the 2.4 GHz band). Then change the channel via the command line:
    netsh wlan set hostednetwork channel=6
  • 🔄 Update your Wi-Fi adapter driverOutdated drivers can limit speed. Download the latest version from the all-in-one PC or adapter manufacturer's website (e.g., Intel, Realtek, Broadcom).
  • 🖥️ Disable power saving for the adapter:
    1. Open device ManagerNetwork adapters.
    2. Right-click on your Wi-Fi adapter → Properties → tab Power management.
    3. Uncheck the box Allow the computer to turn off this device to save power.

It's also worth limiting the number of connected devices. The optimal number for stable operation is 3-5 devicesIf you connect more, the speed may drop by 2-3 times.

netsh wlan set hostednetwork mode=allow ssid="MyWiFi" key="12345678" keyUsage=persistent freq=5

But remember that the range of 5 GHz is shorter than that of 2.4 GHz.-->

6. Solving typical problems

Even with proper setup, errors can still occur. Let's look at the most common ones:

Problem 1: Devices connect, but the internet doesn't work

Reasons and solutions:

  • 🔌 Sharing is not configured. Check that in the main connection settings (for example, Ethernet) public access is enabled (see Method 1, step 5).
  • 🔌 IP address conflictGo to . Network and Sharing Center → Change adapter settings, right click on Local Area Network Connection*PropertiesInternet Protocol version 4 (TCP/IPv4). Check the box. Obtain an IP address automatically.
  • 🔌 Blocked by antivirus or firewall. Temporarily disable them and check the connection.

Problem 2: Network is not displayed on devices

Possible reasons:

  • 📡 The adapter does not support the mode SoftAP. Check the adapter model in Device Manager. If it's old Broadcom 43xx or Atheros AR5xxx, try updating the driver or use a third-party utility.
  • 📡 The network is hidden. Add the parameter to the command line ssid="Network_Name" hidden=yes, but this is unlikely, since the network is visible by default.
  • 📡 Conflict with another Wi-FiIf there is another network nearby with the same name, rename yours.

Issue 3: Error: "Failed to start hosted network"

This error appears when trying to run through netshSolutions:

  • 🛠️ Reinstall the Wi-Fi adapter driver (uninstall it in Device Manager and press Update hardware configuration).
  • 🛠️ Start the service WLAN Automatic Configuration Service:
    net start WlanSvc
  • 🛠️ Check if your adapter supports the mode Hosted NetworkTo do this, enter:
    netsh wlan show drivers

    Look for the line Hosted Network Support: Yes. If there No — the adapter does not fit.

⚠️ Attention: On some all-in-one PCs HP And Lenovo with adapters Realtek RTL8xxx Wi-Fi distribution via netsh may not work due to driver issues. In this case, use third-party programs or update the driver from the manufacturer's website.

7. Alternative methods of distributing the Internet

If you can't share Wi-Fi from your all-in-one PC, consider these alternatives:

  • 🔌 USB modemConnect your smartphone via USB and turn it on. Modem mode (in settings Access point and modem). The all-in-one will receive the Internet via USB and distribute it via Wi-Fi (if the adapter is working properly).
  • 📡 External Wi-Fi adapterIf the built-in adapter does not support sharing, purchase a USB adapter that does support it. SoftAP (For example, TP-Link TL-WN722N or ASUS USB-AC53 Nano).
  • 🔄 Router in repeater mode. Configure the old router as a repeater (mode WISP or Repeater), connect it to the all-in-one PC via cable, and it will distribute Wi-Fi.

You can also use Powerline adapters (For example, TP-Link AV600), if you need to distribute internet throughout your home without installing cables. They transmit the signal through electrical wiring, and the router is connected to one of the adapters.

8. Security when distributing Wi-Fi from an all-in-one PC

Sharing Wi-Fi from an all-in-one PC is convenient, but it's not secure. Your network can become a target for attacks, especially if:

  • 🔓 You use a simple password (for example, 12345678).
  • 🔓 You don't update your drivers and Windows (protocol vulnerabilities) WPA2 can be exploited).
  • 🔓 Connecting unknown devices.
  • Safety recommendations:

    • 🔐 Use a password that is long at least 12 characters with letters, numbers and special characters (for example, WiFi@Monoblock2026!).
    • 🔐 Turn on Windows Firewall and configure it to block incoming connections (except allowed ones).
    • 🔐 Turn off the distribution when it is not needed (especially in public places).
    • 🔐 If you are distributing Wi-Fi in a cafe or hotel, use VPN (For example, ProtonVPN or Windscribe) on the all-in-one PC to encrypt traffic.
    • You can also restrict access by MAC addresses (Although this is not the most reliable protection). To do this:

      1. Find out MAC addresses of trusted devices (on Android: Settings → About phone → General information → Wi-Fi MAC address).
      2. In the command line of the all-in-one PC, enter:
        netsh wlan set hostednetwork mac=XX:XX:XX:XX:XX:XX

        (Where XX:XX:XX:XX:XX:XX — MAC address of the device).

    FAQ: Frequently Asked Questions

    Is it possible to distribute Wi-Fi from an all-in-one PC without a Wi-Fi adapter?

    No. Sharing a wireless network requires a physical Wi-Fi module. If you don't have one, you can:

    • Buy external USB adapter (from 500 rubles).
    • Use smartphone as a modem (via USB or Bluetooth).
    • Connect router to the monoblock via cable and distribute Wi-Fi from it.
    Why is the internet speed when sharing from a monoblock lower than with a cable?

    This is normal. Reasons:

    • Wi-Fi adapter limitationsMost built-in adapters support a maximum of 150 Mbps (standard 802.11n).
    • CPU loadThe all-in-one PC spends resources on traffic encryption (especially with a large number of devices).
    • InterferenceOther Wi-Fi networks, microwaves, or Bluetooth devices may slow down your connection.

    To improve speed:

    • Switch to range 5 GHz (if the adapter supports it).
    • Limit the number of connected devices to 3-4.
    • Use a cable Ethernet to connect the all-in-one computer to the Internet (not Wi-Fi).
    Is it possible to share Wi-Fi from an all-in-one PC running macOS?

    Yes, but only if Windows is installed on the all-in-one PC Boot Camp. Native macOS (even on iMac) does not support Wi-Fi sharing via the command line or built-in tools. Instead, use:

    • Modem mode to iPhone/iPad (via USB or Bluetooth).
    • External router, connected to the monoblock via cable.
    How to share Wi-Fi from an all-in-one PC running Windows 7?

    Windows 7 does not have a built-in mobile hotspot, but you can use:

    1. Command line (netsh) - cm. Method 1.
    2. Third-party programs:
      • Connectify Hotspot (paid, but there is a trial version).
      • Virtual Router Plus (free, but may not work on new adapters).

Also make sure you have installed Service Pack 1 and current updates - without them, the distribution may not work.

Is it possible to distribute Wi-Fi from an all-in-one PC if the Internet is via a USB modem (4G)?

Yes, but with some reservations:

  • If the modem is connected as network adapter (displayed in Network connections How Ethernet or Wireless network), it can be used as a source for distribution.
  • If the modem requires special software (For example, MegaFon Internet or Yota Access), distribution may not work. In this case:
    • Connect the modem to a router with a USB port (for example, TP-Link TL-MR3420).
    • Use your smartphone as a modem instead of a USB modem.