Why to connect Xiaomi to a laptop and what devices are supported
Connecting a Xiaomi smartphone or tablet (including Redmi sub-brands and POCO) The laptop opens up a lot of possibilities: from simple file transfer to debugging applications through ADB. But not everyone knows that except for the classic. USB-There are wireless methods for cables, and for some tasks (for example, streaming the screen) special settings are required.
In this article, we will discuss 5 working ways of connecting, from basic cable to advanced methods like scrcpy for controlling a phone from a PC. And also find out why a laptop may not see Xiaomi and how to fix it. The instructions are relevant for devices on MIUI 12-14 and HyperOS, as well as for laptops on Windows 10/11, macOS and Linux.
โ ๏ธ Important: If you use Xiaomi with an unlocked bootloader or custom firmware, some methods (such as Mi Share) may not work properly. USB or Wi-Fi Direct.
Method 1: Connecting through USB-cable (basic method)
The most reliable and versatile way is to use the original USB Type-C cable (or Micro-USB for older models), but even here there are nuances: a laptop may not recognize a device unless file transfer mode is turned on or drivers are installed.
To connect:
- Take a quality cable (preferably original from Xiaomi or certified USB-IF). Cheap cables often don't support data transfer.
- Connect your phone to your laptop. On the Xiaomi screen, you'll see a notification that says "Charge via USB" -- tap it.
- Select File Transfer (or MTP for older versions of MIUI).
โ Challenges and solutions:
- ๐ Laptop doesn't see Xiaomi: check the cable (try another), reboot both devices, or install Mi drivers PC Suite (link at the end of the article).
- ๐ฑ Phone does not respond to the connection: clean the port of dust, try another USB-port on the laptop (preferably) USB 3.0).
- โ๏ธ Regime. MTP not included: update MIUI Up to the latest version or reset the settings for developers".
Check the cable for damage.
Enable File Transfer Mode on Xiaomi
Update your drivers on your laptop (especially for Windows)
Disable the antivirus (it can block access)
Try another one. USB-port-->
Method 2: Wireless file transfer via Mi Share (Wi-Fi Direct)
If you donโt have a cable, you can share files over the air using the built-in Mi Share feature (formerly Xiaomi Share), which works between Xiaomi devices and Windows 10/11 laptops (requires the Mi PC Suite app).
Instructions:
- On your phone, open Settings โ Connection and Sharing โ Mi Share.
- Activate the function and select "Send" or "Receive" (depending on the task).
- On the laptop, install Mi PC Suite (you can download from the official website) and turn on Mi Share in the program settings.
- Select files on your phone and send them to your laptop (or vice versa), up to 10MB/s.
โ ๏ธ Note: Mi Share does not work on macOS or Linux. For these OSes, use alternatives like Snapdrop or LocalSend (see next section).
| Method | Speed. | Supported OSs | Limitations |
|---|---|---|---|
| USB (MTP) | up to 480 Mbps (USB 2.0) | Windows, macOS, Linux | Requires cable, there may be problems with drivers |
| Mi Share | up to 10MB/s | Windows (with Mi PC Suite) | Does not work on macOS/Linux, you need an official firmware |
| FTP over Wi-Fi | up to 50MB/s | Anybody. | Requires customization, unstable on weak Wi-Fi |
Through USB-cable
Wi-Fi (Mi Share, FTP)
Google Drive (Mi Cloud) and Google Drive (Mi Drive)
ADB or Specialized Programs
Not plugged in.-->
Method 3: FTP file transfer over Wi-Fi (without cable)
If Mi Share is not available, you can arrange file transfers over FTP, a protocol that works on any device, without needing additional programs on the laptop, only a standard file manager (for example, Explorer in Windows or Finder in macOS).
How to set up:
- On your Xiaomi phone, open the Files app (or any file manager, such as Solid Explorer).
- Go to section "FTP" or "Remote Access" (in Solid Explorer: Network) โ FTP-server).
- Start the server - the phone will give the address of the type ftp://192.168.x.x:xxxx.
- On your laptop, open Windows and enter this address in the address bar. For macOS/Linux, use the command in the terminal: ftp 192.168.x.x:xxxx
- Enter your login/password (if requested) โ this is usually standard data from the FTP settings on your phone.
โ Pros of the method: works without installing software, supports large files, is available on all OS.
โ Cons: speed depends on the quality of Wi-Fi, when the connection breaks, you will have to connect again.
๐ก
If FTP-Xiaomi server wonโt start, check if itโs blocked by firewall or antivirus. Also make sure your phone and laptop are connected to the same Wi-Fi network.
Method 4: Control the Xiaomi screen from a laptop (scrcpy)
If you need to not only transfer files, but also control your phone from a laptop (for example, to stream games or debug), use the scrcpy utility. It works on USB or Wi-Fi, supports sound (in newer versions), and does not require root rights.
Instructions for Windows/macOS/Linux:
- Download scrcpy from GitHub and unpack the archive.
- On the phone, turn on the developer mode (7 times tap on "Version") MIUI" In the settings) and activate "Debugging by USB".
- Connect your phone to your laptop via USB and confirm access for ADB.
- Run scrcpy: scrcpy For wireless connection first run: adb tcpip 5555 adb connect 192.168.x.x:5555 (where 192.168.x.x โ IP-local-network address).
๐ฎ Additional opportunities:
- ๐ฑ๏ธ Control of mouse and keyboard from laptop.
- ๐ Transfer of sound from phone to PC (required) --audio newer).
- ๐ฑ Recording the phone screen in high quality (--bit-rate 8M).
How to turn on the sound in scrcpy?
Method 5: Connecting through ADB (for developers)
ADB (Android Debug Bridge) is a tool for debugging and managing Android devices from PCs. It is needed by developers, but it is also useful for executing commands that are not available through the standard interface (for example, unlocking the bootloader or installing custom firmware).
How to connect:
- Install. ADB laptop: ๐ช Windows: Download Platform Tools from Google. ๐ macOS/Linux: Install via brew install android-platform-tools or sudo apt install adb).
USB debugging
adb devicesIf the device appears in the list, the connection is successful.
adb tcpip 5555
adb connect 192.168.x.x:5555๐ง Useful. ADB-teaming:
- ๐ฑ Reboot in fastboot: adb reboot bootloader
- ๐ Resetting settings MIUI (without deletion of data: adb shell pm clear com.miui.home
- ๐ Copying files from phone to PC: adb pull /sdcard/Download/ C:\Users\YourName\Downloads
๐ก
ADB gives you full control of the device, but incorrect commands can cause crashes.Always back up your data before experimenting!
The solution to the problems: the laptop does not see Xiaomi
If neither of these methods works, the causes can be software (drivers, settings) or hardware (damaged cable or port), and let's look at common errors and their solutions.
๐ Diagnostics of the problem:
- Check Device Manager: Open Start โ Device Manager. See if there is an unknown device with an exclamation mark on the list of Other Devices or Portable Devices. If there is, update the driver manually (download from Xiaomi).
macOS/Linux
lsusbIf the Xiaomi device doesnโt show up, the problem is in the cable or port.
โ ๏ธ Note: Some Lenovo laptops and HP bug-s USB-Ports that donโt recognize Xiaomi in the mode MTP. The solution is to connect via the hub USB 2.0 or use the port USB-C (if).
| Mistake. | Possible cause | Decision |
|---|---|---|
| The phone is charging, but no files are transferred | MTP mode not activated | Tap on the notification โCharge via USBโ and select โFile Transferโ |
| The laptop makes the connection sound, but the device does not appear | There are no MTP drivers | Install Mi PC Suite or Drivers Manually |
| ADB: device unauthorized | Unconfirmed access to debugging | Disconnect/connect the cable and confirm the request on the phone |
| scrcpy: no device found | ADB does not see the device | Check the USB connection and execute an adb kill-server, then adb start-server. |