Distributing the Internet from a computer to Xiaomi through USB: guide

Distribution of the Internet from a computer to a Xiaomi smartphone through USB-cable is a reliable way to get a stable connection when Wi-Fi is unavailable or intermittent, USB-Connection provides minimal packet loss, lower latency and protection from external interference, especially for users who often face Wi-Fi dead zones or mobile traffic restrictions.

However, not everyone knows that the standard connection is USB It does not automatically activate Internet transmission, depending on the version of Windows, the Xiaomi model (for example, Redmi Note 12 or the other version of the device). POCO X5) And network settings may require additional manipulation. In this article, we'll discuss three working methods for setting the distribution, errors (e.g., the "S" and "S" of the network, NDIS-651 error or no driver) and how to fix them, and give recommendations for speed optimization.

Why? USB-Best Wi-Fi for Xiaomi?

At first glance, the distribution of the Internet through USB-The cable may seem less convenient than creating a Wi-Fi hotspot, but it has a number of advantages that are critical for Xiaomi users:

  • ๐Ÿ”‹ Saving battery power: when USB-The smartphone consumes energy from the PC, not from its own battery (unlike the Wi-Fi modem).
  • ๐Ÿ“ถ Connection stability: no interference from other devices, walls or distance to the router do not affect signal quality.
  • ๐Ÿ›ก๏ธ Security: Data is transmitted over an encrypted channel, unlike open Wi-Fi networks.
  • โšก Speed: throughput USB 2.0/3.0 (before 480 Mbit/s and 5 Gbps, respectively) exceeds the capabilities of most Wi-Fi networks in urban areas.

Besides, USB-Distribution is indispensable in situations where:

  • ๐Ÿข You are in an office with strict restrictions on Wi-Fi access points.
  • ๐Ÿš† Traveling on a train or bus where mobile internet is unstable.
  • ๐ŸŽฎ Minimum ping is required for online gaming (e.g, PUBG Mobile or Call of Duty: Mobile on Xiaomi).

โš ๏ธ Note: Some Xiaomi models (e.g. Redmi) 9A or POCO M3) default option disabled USB-Tetering in the developer settings. To activate it, you need to pre-enable Developer Mode (7 times press the Version). MIUI in the section About the telephone).

Preparation of the computer and smartphone Xiaomi

Before setting up the distribution of the Internet, you need to follow several preparatory steps, which will help to avoid typical errors, such as the absence of drivers or conflicts of network adapters.

Computer requirements

  • ๐Ÿ–ฅ๏ธ Operating system: Windows 7/8/10/11 (MacOS or Linux will require additional settings).
  • ๐Ÿ”Œ USB-port USB 2.0 or higher (preferably) USB 3.0 for maximum speed).
  • ๐Ÿ”„ Network connection: active Internet connection (Ethernet or Wi-Fi).
  • ๐Ÿ› ๏ธ Drivers: Installed drivers for Xiaomi (usually installed automatically when you first connect).

Requirements for the Xiaomi smartphone

  • ๐Ÿ“ฑ Version. MIUI: Current Firmware (recommended) MIUI 12 and above).
  • ๐Ÿ”— USB-cable: original or certified cable (cheap analogues may not support data transfer).
  • ๐Ÿ”’ Unlock: Unlocked bootloader (optional, but may be required for manual setup).

If you are using Windows 11, make sure that the system has disabled the battery saving option for the system. USB-To do this, go to the settings. โ†’ System system โ†’ Food and sleep. โ†’ Additional nutrition parameters โ†’ Power supply circuit setup โ†’ Change the additional power settings and find the Settings section USB.

๐Ÿ“Š What version of Windows are you using?
Windows 10
Windows 11
Windows 7/8
macOS/Linux

Method 1: Standard configuration through Windows settings

This is the easiest way to work on most Xiaomi devices without any additional manipulation. 10/11.

Step 1: Connecting your smartphone to your PC

  1. Connect Xiaomi and your computer with USB-cable.
  2. On the smartphone in the notification menu, select the connection mode File transfer (MTP) or USB-Tethering (if the option is available).
  3. Wait for the drivers to install (Windows may notify you of setting up a new network device).

Step 2: Set up Internet Sharing

  1. On your computer, open the Control Panel โ†’ Network and Internet โ†’ Network and Sharing Control Center.
  2. In the left menu, select Change the adapter settings.
  3. Find the connection your PC uses to get internet (like Ethernet or Wi-Fi) and remember its name.
  4. Right-click on this connection โ†’ Properties โ†’ tab Access.
  5. Check the box opposite Allow other network users to use the Internet connection of this computer.
  6. In the drop-down list, select a new network connection called Local Area Connection* or Ethernet 2 (this is a virtual adapter for Xiaomi).
  7. Press. OK and reboot the network (turn off / turn on the Internet on PC).

If the Internet on Xiaomi did not appear after these actions, check:

  • ๐Ÿ”Œ Correct cable connection (try another port or cable).
  • ๐Ÿ”„ Internet access on PC (sometimes Windows blocks the distribution when connecting via PC) VPN).
  • ๐Ÿ› ๏ธ Installation of drivers (Device Manager should not have exclamation points next to Android Device).

โ˜‘๏ธ Checking before handing out the Internet

Done: 0 / 4

Method 2: Manual creation of a virtual adapter (for Windows) 7/8)

On older versions of Windows, the standard method may not work due to lack of support. RNDIS (protocol USB-In this case, you will need to create a virtual adapter manually.

Step 1: Installation of drivers RNDIS

Download the driver. RNDIS for your Xiaomi model from the official Xiaomi website or from a reliable source (e.g., from a reliable source, XDA Install it through Device Manager:

  1. Connect your smartphone to your PC.
  2. Open Device Manager (Win + X โ†’ Device Manager).
  3. Find a device with a yellow exclamation point (usually under Other Devices or Network Adapters).
  4. Right-click. โ†’ Update the drivers โ†’ Search for drivers on this computer.
  5. Indicate the path to the downloaded driver RNDIS and complete the installation.

Step 2: Set up a network bridge

If the Internet is not distributed after installing the drivers, create a network bridge:

  1. Open the Network Control Center โ†’ Change of adapter parameters.
  2. There are two main connections (e.g. Ethernet) and virtual connections (RNDIS).
  3. Right-click. โ†’ Bridge setting.
  4. Wait for the bridge to be built (it can take up to 1 minute).

โš ๏ธ Note: Some Xiaomi models (e.g. Redmi Note 10 Pro) may lose the Internet on your PC when creating a bridge. In this case, turn off the bridge and use the Command Prompt Method 3.

Method 3: Distribution through the command line (universal method)

This method works on all versions of Windows and allows you to bypass the limitations of drivers. Administrator rights will be required.

Step 1: Starting the command line

Open the Command Prompt on behalf of the Administrator:

  1. Press Win. + X โ†’ Terminal (Administrator) or Command Line (Administrator).
  2. Enter the command to check network connections: netsh interface show interface Remember the name of the main adapter (for example, Ethernet0) and virtual (e.g., virtual, Ethernet2).

Step 2: Setup of the handout

Follow the following commands in order (replace) Ethernet0 and Ethernet2 topical):

netsh interface ipv4 set interface"Ethernet2" weakhostsend=enabled


netsh interface ipv4 set interface"Ethernet2" weakhostreceive=enabled




netsh interface ipv4 set interface"Ethernet0" sharing=enabled




netsh interface ipv4 add route 192.168.42.0/24"Ethernet0" 192.168.42.129

After completing the commands, restart the network adapters:

netsh interface set interface"Ethernet2" disable


netsh interface set interface"Ethernet2" enable

Step 3: Checking the connection

On a Xiaomi smartphone:

  1. Open the Settings. โ†’ SIM-maps and mobile networks โ†’ Access Point and modem.
  2. Activate the option. USB-modem.
  3. Check the Internet (open your browser or speed test).

MIUI

MIUI 13

Xiaomi 12

build.prop

Solving typical errors when USB-distribution

Even with the right setup, Xiaomi users may encounter errors, and letโ€™s look at the most common ones and how to fix them.

Mistake.Reason.Decision
NDIS-error 651Network Driver Conflict or Absence RNDIS.Reinstall drivers through Device Manager or download them from Xiaomiโ€™s website.
Device not identified.Faulty cable or port USB.Try another cable/port or turn on Debugging USB developer-setting.
No Internet accessBlocking with a firewall or antivirus.Turn off the Windows firewall or add an exception for the network adapter.
IP-address not receivedFailure DHCP-server.Set up a static. IP manually (e.g. 192.168.42.100 with 255.255.255.0 mask).

If after all the manipulations the Internet is not distributed, check:

  • ๐Ÿ” Windows Updates (especially for Windows 10) 20H2 newer).
  • ๐Ÿ“ต No restrictions on the part of the mobile operator (some tariffs block tethering).
  • ๐Ÿ”ง Correctness of settings NAT (In the command line, run the netsh interface. ipv4 show dynamicportrange tcp).
What to do if the operator is blocking USB-tetering?
Some operators (e.g, Tele2 Yota: Restricts Internet distribution at the level of SIM-In this case, it will help: 1. Replacement SIM on the tariff with tetering support. 2. VPN on a PC (e.g., ProtonVPN) to bypass locking. 3. Manual change TTL Windows Registry (for Advanced Users Only).

Optimization of speed USB-linkage

Windows can limit the data transfer speed by default USB. To maximize the bandwidth:

1. Set up a power supply plan

Go to the Control Panel. โ†’ Power supply โ†’ Setting up a power supply plan โ†’ Change the additional power parameters and install:

  • Parameters USB โ†’ Temporary shutdown parameter USB-port โ†’ Forbidden.
  • PCI Express โ†’ Power management of the reference state โ†’ Off..

2. Updating of controller drivers USB

Older drivers limit speed to USB 2.0 (480 Mbps) Update them:

  1. Open Device Manager.
  2. Deploy the Controllers section USB.
  3. Update drivers for devices with Intel(R) names) USB 3.0 or AMD USB Controller.

3. Disabling the QoS Restrictions

Windows. 10/11 default-backed 20% It's a bandwidth for system problems:

  1. Open Local Group Policy Editor (gpedit.msc).
  2. Go to the computer configuration โ†’ Administrative templates โ†’ Network โ†’ QoS Planner Package.
  3. Select Limit the reserved bandwidth โ†’ set the value 0.

๐Ÿ’ก

If the speed is still low, try connecting Xiaomi to the port. USB 3.0 (usually marked in blue) Also check if the smartphone overheats - at high temperatures MIUI Automatically limits the performance of the communication module.

FAQ: Frequent questions on USB-handout

โ“ Can I distribute the Internet from PC to Xiaomi through USB, If there is no Wi-Fi on the computer?
Yes, the main condition is the presence of any active Internet connection on a PC (for example, via an Ethernet cable or a computer). 4G-modem). USB-Tethering transmits traffic regardless of the type of original connection.
โ“ Why Xiaomi is not defined as a network device when connected?
The reasons may be as follows: ๐Ÿ”Œ Uses a charging cable without data support (try the original cable from the kit). ๐Ÿ› ๏ธ There are no drivers. RNDIS or ADB (manually install them). ๐Ÿ”’ On the smartphone disabled Developer Mode or Debugging by USB.
โ“ How to check that the Internet is distributed through USB, Not through mobile data?
Open on Xiaomi Settings โ†’ SIM-maps and mobile networks โ†’ Traffic usage: If traffic is not consumed, you're using the Internet from a PC, you can also turn off mobile data and check access to the network.
โ“ Does it work? USB-Tetering on Xiaomi with broken firmware (for example, after a failed unlock of the bootloader)?
On unofficial or damaged firmware USB-Tethering may not work properly. In this case: Fastboot the device with the official firmware. Check the integrity of the file. /system/etc/entitlement/ (Root rights are required).
โ“ Can I distribute the Internet from MacBook to Xiaomi through USB?
Yes, but the setup is different from Windows: Connect Xiaomi to the Mac and select the mode USB-Tethering. Open system settings. โ†’ Network. Add a new type of connection. USB and set up Sharing in the Sharing section โ†’ Common Internet.

๐Ÿ’ก

USB-Providing the Internet to Xiaomi is the most stable and secure method, but requires the correct setting of drivers and network settings. If the standard methods do not work, use the command line or check the locks from the operator.