How to connect a Xiaomi device to a laptop: all ways + problem solving

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:

  1. Take a quality cable (preferably original from Xiaomi or certified USB-IF). Cheap cables often don't support data transfer.
  2. Connect your phone to your laptop. On the Xiaomi screen, you'll see a notification that says "Charge via USB" -- tap it.
  3. 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:

  1. On your phone, open Settings โ†’ Connection and Sharing โ†’ Mi Share.
  2. Activate the function and select "Send" or "Receive" (depending on the task).
  3. On the laptop, install Mi PC Suite (you can download from the official website) and turn on Mi Share in the program settings.
  4. 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).

MethodSpeed.Supported OSsLimitations
USB (MTP)up to 480 Mbps (USB 2.0)Windows, macOS, LinuxRequires cable, there may be problems with drivers
Mi Shareup to 10MB/sWindows (with Mi PC Suite)Does not work on macOS/Linux, you need an official firmware
FTP over Wi-Fiup to 50MB/sAnybody.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:

  1. On your Xiaomi phone, open the Files app (or any file manager, such as Solid Explorer).
  2. Go to section "FTP" or "Remote Access" (in Solid Explorer: Network) โ†’ FTP-server).
  3. Start the server - the phone will give the address of the type ftp://192.168.x.x:xxxx.
  4. 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
  5. 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:

  1. Download scrcpy from GitHub and unpack the archive.
  2. On the phone, turn on the developer mode (7 times tap on "Version") MIUI" In the settings) and activate "Debugging by USB".
  3. Connect your phone to your laptop via USB and confirm access for ADB.
  4. 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?
To activate it, download the latest version of scrcpy (1.24+) and run with the --audio flag. The phone must have Developer Mode and USB Sound Transmission enabled (in some firmwares, this is the option of Disable Audio USB routing in the adb shell).

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:

  1. 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 devices

If 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:

  1. 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

lsusb

If 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 causeDecision
The phone is charging, but no files are transferredMTP mode not activatedTap on the notification โ€œCharge via USBโ€ and select โ€œFile Transferโ€
The laptop makes the connection sound, but the device does not appearThere are no MTP driversInstall Mi PC Suite or Drivers Manually
ADB: device unauthorizedUnconfirmed access to debuggingDisconnect/connect the cable and confirm the request on the phone
scrcpy: no device foundADB does not see the deviceCheck the USB connection and execute an adb kill-server, then adb start-server.

FAQ: Frequent questions about connecting Xiaomi to a laptop

๐Ÿ”น Can you connect Xiaomi to a laptop without cable?
Yeah, there are a few ways: ๐Ÿ“ฒ Mi Share (only for Windows with Mi) PC Suite). ๐ŸŒ FTP Wi-Fi (works on all operating systems). ๐Ÿ–ฅ๏ธ Scrcpy in wireless mode (requires prior USB-Connection for settings. The most versatile option โ€” FTP, Because it does not require additional software on the laptop.
๐Ÿ”น Why Xiaomi is not connecting to a laptop on macOS?
Mac OS often has problems with MTP-Solutions: Install Android File Transfer (official software from Google). FTP or ADB (Check if Gatekeeper is blocking the connection (allow Android File Transfer to run in the security settings).
๐Ÿ”น How to transfer files from Xiaomi to laptop via Bluetooth?
Bluetooth is only suitable for transferring small files (up to 50 MB). Instructions: Turn on Bluetooth on your phone and laptop. Connect devices (on your laptop you may need to enter a confirmation code). โ†’ "Send" โ†’ Bluetooth and select a laptop. โš ๏ธ Transmission speed is about 1-2 MB / s, which is 10โ€“50 times slower. USB or wifi.
๐Ÿ”น Can you connect Xiaomi to a laptop like a webcam?
Yes, use it for that: ๐ŸŽฅ DroidCam (Android app) + PC-client). ๐Ÿ“ฑ Built-in function "USB-webcam in Xiaomi (available on some models in Settings) โ†’ Additionally. โ†’ Regime. USB-For high-quality streaming (1080p) better USB-connection.
๐Ÿ”น Why when you connect Xiaomi to a laptop phone starts to warm up?
The heat is caused by: ๐Ÿ”Œ Quick charging through USB (Especially if you are using a powerful adapter). ๐Ÿ“ฑ Active data transfer (e.g. copying large amounts of files). ๐Ÿ”„ Background sync (cloud, updates) Solution: Turn off fast charging in Xiaomi settings or use USB-powerhouse.