How to connect a Xiaomi smartphone to a computer via Wi-Fi: 3 proven ways

Why Xiaomi should connect to a PC over Wi-Fi and when it really needs to

Wirelessly connecting a Xiaomi smartphone to a computer via Wi-Fi solves several problems: it eliminates the need to search for a cable, allows you to transfer files from a distance and even control the phone from a PC screen. But this method is not always more convenient than a traditional USB- connection.

The main scenarios when Wi-Fi connection is justified:

  • πŸ”Œ No working USB- cable or port on PC/phone is damaged.
  • πŸ“ You need to sync files (photos, documents) regularly without a physical connection.
  • πŸ–₯️ Remote phone control (e.g. for presentations or technical support) is required.
  • 🐞 Debugging applications via ADB over Wi-Fi (relevant to developers).

However, there are limitations: Wi-Fi data transfer speeds (even on a 5 GHz network) are usually lower than USB 3.0. In addition, both devices need to be on the same local network to work smoothly. If you need to copy a large file (for example, a video in 4K), it is easier to use a cable.

πŸ“Š Why do you connect Xiaomi to your PC more often?
File transfer
Debugging/development
Remote control
Backup
Other

Method 1: Transfer files via Mi Drop (built-in solution from Xiaomi)

Mi Drop is a proprietary application from Xiaomi that allows you to share files between devices over a local network without the Internet. It is pre-installed on most of the brand’s smartphones (starting with MIUI 8), the main advantage is the simplicity and no need to configure FTP or ADB.

To take advantage of Mi Drop:

  1. Open the Mi Drop app on your smartphone (find it through a search in the menu or in the Tools folder).
  2. Click Send files and select the desired documents, photos or videos.
  3. At the bottom of the screen will appear button Connect to the computer β€” tap it.
  4. On PC, open your browser and enter the address that appears on your phone screen (e.g. http://192.168.1.100:8080).
  5. Confirm the connection on your smartphone and download files through the web interface.

Note: Mi Drop only works on one Wi-Fi network, and the speed of transfer depends on the load of the channel. If the router supports 5 GHz, switch to this frequency to speed up the process.

Enable Wi-Fi on your phone and PC|Connect both devices to the same network|Open Mi Drop on your smartphone|Allow access to files in the application settings|Shut down. VPN on a PC (can block the connection)-->

⚠️ Warning: If files are not displayed in the browser after you connect, check if the Windows Firewall is blocking them. Add port 8080 to exceptions or temporarily disable protection.

Method 2: FTP- Server on a smartphone (for advanced users)

If Mi Drop seems too limited, you can run a full-fledged FTP- server on Xiaomi, which will allow you to access the phone's file system as a network drive, a method that takes a little more effort, but gives you complete control over the data transfer.

Instructions for setting:

  • πŸ“± Install the FX File Explorer app (or analogues: Solid Explorer, ES Explorer).
  • πŸ”§ Open the side menu and select Network Access β†’ FTP- Server.
  • πŸ”‘ Press Start Server and the address to connect will appear (e.g. ftp://192.168.1.101:2221).
  • πŸ’» On a PC, open Windows Explorer, enter the address in the address bar and press Enter.
  • πŸ” When requesting a login/password, use the data that is displayed in the app on your phone (usually anonymous without a password or a random combination).

The advantages of FTP- server:

  • ⚑ Ability to transfer large files (more than 4 GB).
  • πŸ“‚ Access all folders of the phone (including system folders if root permissions are given).
  • πŸ”„ Supports simultaneous download/uploading of multiple files.

ParameterMi DropFTP-server
Transmission speedMedium (up to 10 MB/s)High (up to 50MB/s in 5GHz)
Setting upMinimumMedium (requires an annex)
Access to system foldersNo.Yeah (with root)
Support for large filesLimited (up to 2 GB)No restrictions.

⚠️ Warning: Don't leave the FTP- server on after the file transfer is complete, which creates a vulnerability: if an outsider connects to your network (for example, via public Wi-Fi), it can access the data on the phone.

Method 3: Connecting over ADB via Wi-Fi (for developers)

If you need to debug applications, test firmware, or execute ADB commands without USB, you can set up a wireless connection via Android Debug Bridge, which requires pre-configuration, but opens up the maximum possibilities.

Step-by-step:

  1. Connect your phone to your PC via USB and turn on Developer Mode (7 times tap the Build Number in Settings β†’ About Phone).
  2. In Settings β†’ Additional β†’ For developers, activate debugging over USB.
  3. Open the Command Prompt (Windows) or Terminal (macOS/Linux) and execute: Adb devices Make sure the device is defined.
  4. Switch to Wi-Fi by running adb tcpip 5555 adb connect 192.168.1.100:5555 (replace IP with the current phone address on the network).
  5. Disable the USB- cable. Now the ADB commands will be running over Wi-Fi.

To return to the USB- connection, do:

adb usb

πŸ’‘

If the adb connect command gives an error "cannot connect", check if the firewall or antivirus is blocking the connection, and make sure that the phone and PC are in the same subnet (for example, both in 192.168.1.x).

Advantages of ADB for Wi-Fi:

  • πŸ› οΈ Full access to the Android console (installation APK, logs, backups).
  • πŸ”„ Ability to reboot fastboot without a physical connection.
  • πŸ“‘ Works even if the USB- port of the smartphone is damaged.

What to do if the ADB shuts down after sleeping?
By default, the ADB Wi-Fi connection breaks when you lock the screen. To avoid this, follow the command: adb shell settings put global stay_on_while_plugged_in 3 This simulates "always on" mode when you connect to a charge, even if the phone is battery-powered.

Common Mistakes and How to Fix Them

Even with the right setup, Wi-Fi connectivity can be unstable, and here are the typical problems and solutions:

Problem.Possible causeDecision
Phone not visible in Mi DropFirewall lockingTurn off the firewall or add an exception for port 8080.
FTP-server not runningOccupied port 2221Try another port (e.g., 2121) in the application settings.
ADB does not connect over Wi-FiThe device is not on the same networkCheck IP- addresses with the ipconfig (PC) command and in Settings β†’ Wi-Fi (phone).
Low transmission speedNetwork congestion 2.4 GHzSwitch to 5 GHz or limit your network usage to other devices.

If none of the methods work, check:

  • πŸ”„ Updates to MIUI: Older versions (below MIUI 10) may not have the desired features.
  • πŸ“Ά Wi-Fi signal quality: When the signal is weak (1-2 dividing), the transmission will be interrupted.
  • πŸ”’ Router settings: Some models block local device interaction (disable AP Isolation).

πŸ’‘

If you use public Wi-Fi (such as in a cafe), FTP or ADB connections will not be possible – these protocols only work on LANs.

Security: How to protect data when connected wirelessly

File transfer over Wi-Fi is convenient, but it comes with risks, and here's how to minimize it:

πŸ” Essential protection measures:

  • πŸ›‘οΈ Use WPA3 to encrypt Wi-Fi (in router settings).
  • πŸ”„ Change your network password regularly (especially if you have guests connected to it).
  • 🚫 Turn off FTP/ADB immediately after use.
  • πŸ“± On your phone, turn on Screen Lock (PIN or fingerprint).

For maximum confidentiality:

  • 🌐 Use VPN (e.g., ProtonVPN) to create a secure tunnel.
  • πŸ”— It is better to use encrypted archives (ZIP with a password) to transmit sensitive data (documents, passwords).
  • πŸ” Check the connection logs in the applications (for example, FX File Explorer has a FTP- session log).

⚠️ Warning: If you connect to a computer in a public place (work, study), never use ADB over Wi-Fi without VPN. An attacker on the same network may take over control of your device.

Alternative methods: when Wi-Fi is not suitable

If wireless connectivity is not possible (for example, no router or weak signal), consider alternatives:

πŸ”„ Other ways to connect Xiaomi to a PC:

  • πŸ”Œ USB-OTG + Ethernet adapter: If the smartphone’s Wi-Fi module is broken, you can connect the phone to the router via cable.
  • πŸ“‘ Bluetooth: Slow (up to 1MB/s), but suitable for transferring contacts or small files.
  • ☁️ Cloud services (Mi Cloud, Google Drive): convenient for backups, but requires internet.
  • πŸ“¦ Local Area Network via USB: Enable USB ethernet in the developer settings (root required).

For remote control without Wi-Fi is suitable:

  • TeamViewer QuickSupport (works via mobile Internet).
  • Scrcpy with USB connection + image transfer over the network.

πŸ’‘

If you need to sync files regularly, consider buying a NAS- drive (e.g. Xiaomi Mi Router + hard drive) that will allow you to organize a home cloud with both phone and PC access.

FAQ: Frequent questions about connecting Xiaomi to PC over Wi-Fi

Can Xiaomi connect to a PC over Wi-Fi without a router (directly)?
Yes, but with limitations. Create a hotspot on your phone (Settings β†’ Access Point) and connect your PC to it. Then use the FTP- server or the ADB (5555 port), but the speed will be slower than the router.
Why can’t Mi Drop see a computer, even though both devices are on the same network?
Check: πŸ”₯ Windows Firewall disabled on PC or an exception for port 8080 added. πŸ“± On phone in Settings β†’ Applications β†’ Mi Drop β†’ Permissions enabled file and network access. πŸ”„ IP- Device addresses belong to the same subnet (e.g., 192.168.1.x).
How to transfer files from PC to Xiaomi over Wi-Fi without installing programs?
Use the built-in FTP- Windows Server: On a PC, open Control Panel β†’ Programs β†’ Turn on or off Windows components and activate the FTP- Server. In Manager IIS, set up a folder for shared access. On your phone, connect via FX File Explorer to ftp://[IP_ PC.
Does ADB work on Wi-Fi on all Xiaomi models?
The feature is supported on most devices with MIUI 10 and newer, but there are exceptions: βœ… Works: Redmi Note 10/11, POCO X3/X4, Mi 11/12. ⚠️ Limitations: Redmi 9A/9C may require manual port indication. ❌ Not working: older models on MIUI 9 and below (e.g.g. Redmi 4X).
Can you use Wi-Fi to flash Xiaomi (install custom firmware)?
Technically, but it's not recommended. Wi-Fi firmware can cause πŸ”΄ connection disruption (resulting in a phone blink). 🐒 Low transmission speed (firmware weighs 2-4 GB). For firmware, use USB- cable and Fastboot/EDL mode.