Distributing Internet from a computer to Xiaomi via USB: full instructions with error solutions

Why? USB-distribution is better than Wi-Fi and Bluetooth?

When there is no router at hand, and the mobile Internet on the Xiaomi phone is over, USB-Unlike a Wi-Fi hotspot, which drains the battery and is limited in speed, a wired connection provides a stable signal without delay) USB offers full access to the network at speeds up to 100 Mbps – enough for streaming in the Internet 1080p uploading large files.

Another advantage β€” USB-The distribution works even on phones with damaged Wi-Fi module or stripped down features (for example, on some models). POCO In addition, this method does not require root rights and is compatible with any version. MIUI (including MIUI 14/15). The main thing is to properly configure your computer and phone to avoid typical mistakes like β€œNetwork without Internet accessΒ».

What will you need to set up?

Before you start, check for everything you need. USB-The handout just won't work:

  • πŸ”Œ USB-Data-enabled cable (not all charging cables are suitable!) It is optimal to use the original Xiaomi cable or certified cable. USB 2.0/3.0.
  • πŸ’» Computer running Windows 7/10/11 Linux (macOS will require additional drivers). XP The method will not work.
  • πŸ“± Xiaomi phone with unlocked screen and enabled Debugging mode USB (Not necessarily, but it is recommended for stability).
  • 🌐 Active Internet connection on a PC (via Ethernet, Wi-Fi or mobile modem) If the Internet is connected via the same Internet connection USB-port, 4G-modem, the distribution may not work.

Pay special attention to cable: cheap uncertified wires often only support charging, not data transmission. To check this is simple, connect the phone to a PC and see if it is defined as Media Device (MTP) or Charging. In the second case, the cable will have to be replaced.

πŸ“Š What type of internet do you give out on your phone more often?
Mobile (3G/4G/5G)
Home Ethernet
Wi-Fi from the router
Other

Step-by-step instructions for Windows

Configuring the Internet over USB on Windows takes no more than 5 minutes, if you follow a clear algorithm, it is important not to miss steps, for example, enabling shared access without first setting up the network adapter will lead to an error.

Step 1: Connecting your phone and installing drivers

1. Connect Xiaomi to your computer via USB-cable.

2. On the phone in the notification panel, select File Transfer Mode (MTP) or USB-modem (if such a point exists).

3. Wait for the drivers to install. If Windows requests a driver for Remote NDIS, download it from the official Android website.

β˜‘οΈ Preparation for Internet distribution

Done: 0 / 4

Step 2: Set up Sharing Access

1. Press Win + R, enter ncpa.cpl and press Enter (a list of network connections will open).

2. Find an active internet connection (e.g. Ethernet or Wi-Fi), right-click and select Properties.

3. Go to the Access tab and tick the box opposite Allow other network users to use the Internet connection of this computer.

4. In the drop-down list Home Network Connection, select a new connection called Ethernet 2, Local Area Connection* X or the like (this is a virtual phone adapter).

If there is no suitable connection in the list, update the drivers or reconnect the phone.

Step 3: Starting the handset on the phone

1. On Xiaomi, go to Settings β†’ SIM cards and mobile networks β†’ Access Point and modem.

2. Activate the option USB-modem (on some firmware it may be called USB-Internet).

3. Wait for the notification to appear USB-modem active.

If you're optional USB-Modem is missing, update. MIUI Up to the latest version or install a patch through Magisk (root required).

πŸ’‘

If, after activation, USB-Internet modem does not appear on your phone, try to disable the Windows firewall or antivirus – they can block the general connection.

Addressing common mistakes

Even with the right setup, users often face problems, and here are the most common ones and ways to fix them:

Mistake.Reason.Decision
A network without Internet accessIncorrectly selected adapter in the settings of the public access or locking firewallRecheck the connection selection in ncpa.cpl and disable the firewall
Device not recognized (in Device Manager)Remote NDIS drivers missing or cable faultyInstall the driver manually or replace the cable
The Internet is available, but some sites are not working.DNS-servers are not registered or blocked at the provider levelManually specify DNS 8.8.8.8 and 8.8.4.4 in the phone network settings
USB-modem is inactive (grey switch)Disabled debugging by USB or lock operatorTurn on USB Debugging in Settings β†’ About Phone β†’ MIUI version (7 times tap)

If none of these methods worked, try resetting the network settings on your phone (Settings). β†’ System system β†’ Reset β†’ Reset network settings. This will delete all stored Wi-Fi networks and VPN, But often solves problems with USB-distribution.

What if the phone is not defined as a modem?
On some firmware MIUI (particularly custom USB-The modem is disabled at the kernel level, and then you can install the module. USB Tethering Enabler via Magisk or flashing to official global version.

Features for Linux and macOS

On Linux settings USB-It's easier to distribute than Windows, but it requires terminal processing:

  1. Put the phone on and turn it on. USB-modem.
  2. Open the terminal and execute a command to check the new network interface: ip a It is usually called usb0 or enp0s20uX.
  3. Turn on the Internet distribution (replace) eth0 Your main interface: sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i usb0 -o eth0 -j ACCEPT

MacOS will require additional software installation, such as HoRNDIS or Android File Transfer, as standard drivers do not support the same. USB-Modem. After installing the drivers, the setting is similar to Windows: enable sharing in System Settings β†’ Public access β†’ Common Internet.

πŸ’‘

On Linux, USB distribution works without additional drivers, but requires superuser rights (sudo) to configure iptables.

How to speed up the Internet via USB?

Default speed USB-The distribution is limited at the protocol level, but it can be increased by 20-30% with a few tricks:

  • ⚑ Turn off the power saving. USB: In Windows, go to Device Manager. β†’ Controllers USB β†’ Root USB-hub β†’ Properties β†’ Power management and uncheck the tick from Allow disconnection of this device to save energy.
  • πŸ”§ Use it. USB 3.0: Connect your phone to the blue port (if you have one on your PC) and speeds up from 480 Mbps (USB 2.0) up to 5 Gbps (USB 3.0).
  • πŸ“Ά Change. MTU: In Windows, run the command line: netsh interface ipv4 set subinterface "Ethernet 2" mtu=1472 store=Replace Ethernet 2 with your name USB-adapter).

You should also disable Windows background updates and MIUI At handout time, they can consume up to 50 percent of the channel. β†’ The phone. β†’ Updating the system β†’ Settings (βš™) β†’ Auto-update.

πŸ’‘

If the speed is still low, check if your ISP is restricting it. Some operators (such as Beeline or Tele2) artificially slow down the speed when handing out from a PC.

Security: Risks and How to Avoid Them

Distributing the Internet via USB seems secure, but has hidden threats:

⚠️ Attention: At USB-Xiaomi phone is becoming vulnerable to attacks through the distribution of ADB (Android Debug Bridge.If malware is installed on PCs, they can access phone files or even install spyware.Always use trusted computers!

To minimize the risks:

  • πŸ”’ Turn off the debugging. USB after setting up the distribution (if it was included).
  • πŸ›‘οΈ Use antivirus with protection USB-Devices (e.g. Kaspersky Internet Security).
  • 🚫 Do not connect your phone to public PCs (in internet cafes, libraries, etc.).

If you regularly have to distribute the Internet from other computers, consider a virtual machine (for example, VirtualBox) – this will create an additional layer of isolation between the phone and a potentially dangerous PC.

FAQ: Frequent questions on USB-distribution

Can I distribute the Internet from Xiaomi to my computer via USB?
Yeah, but you need to turn it on. USB-You can use a modem on your phone and set up to get Internet access on your PC, but it's going to be slower than PC-to-phone, because of the limitations of mobile networks.
Why does the USB phone start charging slowly?
This is normal: when you are actively transferring data over USB, the charging power is reduced to 0.5-1A. To speed up charging, use a Y-cable with an additional power port or connect the phone to charging in parallel.
Does it work? USB-handouts on Xiaomi phones with custom firmware (for example, Pixel Experience)?
Yes, but you may need to adjust it, and some firmwares need to manually enable RNDIS support through Kernel Adiutor or similar utilities, and check if /system/bin/rndis is deleted in your firmware.
Can I distribute the Internet from a PC to several Xiaomi phones at the same time?
Technically yes, but it will require: Connect the phones through USB-External powered hub: Set up a separate virtual adapter for each device in ncpa.cpl. USB-But the speed will be shared across all devices, and the stability of the connection may drop.
How to turn off USB-Distribution if the phone does not respond?
If the phone screen is frozen, USB-The modem continues to work: Disconnect the cable from your computer. On your PC, open Device Manager and remove the Remote device NDIS. Reboot the phone forcibly (clip the power supply) + Loudness down for 10 seconds).