Set up remote access to the Xiaomi router: 3 working ways

Why you need remote access to the Xiaomi router and what risks it carries

Imagine if you went on a business trip and the Internet went missing at home, or if you had to reboot your router so that your family could connect to Wi-Fi, remote access to Mi Router solves these problems, because it allows you to manage your network from anywhere in the world via your smartphone or computer, but with convenience comes security risks: open access to the admin panel can be a loophole for hackers if you don't configure it correctly.

Xiaomi routers (including popular Mi Router models) 4A, 4C, AX3000 Redmi Router AX6) Support several ways of remote control: through the official application Mi WiFi, by protocol Telnet/SSH through VPN-Each method has its own nuances, from ease of setting to security level. In this article, we will discuss all options with step-by-step instructions, comparison tables and solutions to typical errors.

It is important to understand that remote access on Xiaomi routers is disabled by default – this is done for security. Its activation requires a conscious approach, especially if sensitive data is stored on your network (for example, security cameras or smart devices). If you are not sure about your skills, it is better to limit yourself to managing over a local network.

πŸ“Š What kind of Xiaomi router do you have?
Mi Router 4A/4C
Mi Router AX3000/AX6
Redmi Router
Another Xiaomi
Not Xiaomi.

Method 1: Remote management via Mi WiFi

The easiest method is to use the official Mi WiFi app (formerly Mi Router), which allows you to connect to a router through the Xiaomi cloud without opening ports manually. Minus: only works if the router is connected to the Internet and is linked to your Mi Account.

To activate the function:

  1. Install the Mi WiFi app on your smartphone (Android/IOS).
  2. Connect to the network of the Xiaomi router over Wi-Fi.
  3. Open the app and log in to your Mi Account (the same as on the router).
  4. Go to Profile β†’ Settings β†’ Remote access and enable the option.

Once activated, you can control the router from any network, even the mobile Internet.

  • πŸ”’ Access is limited to basic functions: reboot, change Wi-Fi password, view connected devices.
  • 🌐 It only works with a stable Internet connection on the router.
  • ⚠️ It does not support models with MiWiFi firmware ROM (Like Mi Router. 3G).

πŸ’‘

If the application does not see the router, check that it has enabled cloud sync in Settings β†’ Cloud β†’ Sync.

Method 2: Configure remote access via Telnet/SSH (for experienced)

For advanced users who need advanced features (for example, installing custom firmware or scripts), access via Telnet or SSH is suitable. This method requires manual port configuration and command line knowledge.

Instructions for the Mi Router 4A Gigabit Edition (similar to other models with OpenWRT firmware):

  1. Enable Telnet via web interface: Settings β†’ Additional β†’ Developer β†’ Enable Telnet
  2. Connect to the router via a local network using PuTTY (Windows) or terminal (Linux/macOS): telnet 192.168.31.1 Login / password by default: root / password from the admin panel.
  3. Install SSH for secure connection: opkg update opkg install openssh-server
  4. Set up port 22 (SSH) to Settings β†’ Redirect β†’ Ports Fast.

Now you can connect to the router from the outside at your external IP:22.

⚠️ Attention: Open SSH-Port is a favorite target for botnets. Always change the standard password and set up key authentication!

Disable Telnet after setting up SSH|

Use a complex password (12+ characters) |

Set up fail2ban to block brute force |

Close port 22 in the firewall after use-->

Method 3: VPN-Server on the router - secure remote access

The most secure option is to deploy VPN-It allows you to connect to your home network as if you were next to the router, without opening ports out. PPTP OpenVPN (on Padavan or OpenWRT firmware).

Setting up a PPTP VPN on the Mi Router AX3000:

  1. Turn it on. VPN-server settings β†’ VPN β†’ PPTP VPN.
  2. Specify the range IP for VPN-customers, for example, 192.168.32.100-200).
  3. Create a user account with a password.
  4. Set up port 1723 (TCP) and allow GRE (47).

To connect to Windows:

  1. Open Control Panel β†’ Network Management Center β†’ Connection creation.
  2. Choose a Workplace Connection (VPN).
  3. Enter the external IP of the router and user data.
ProtocolSpeed.SecurityDifficulty setting up
PPTP⚑ Tall.πŸ”΄ Low (obsolete)β­β­β˜†
OpenVPN⚑ Medium🟒 Tall.⭐⭐⭐
WireGuard⚑⚑ Very high.🟒 Tall.⭐⭐⭐⭐ (firmware)

How to find out an external IP router?
Open 2ip.ru from the device connected to your router. Or enter http://miwifi.com/cgi-bin/luci/web (for authorized users) in the browser address bar and find the "WAN Status" section.

DDNS

No-IP

Solving typical problems when setting up

"Not remotely connected" is the most common complaint, and the reasons may be different:

  • πŸ”Œ The port is closed by the provider. Many operators (for example, Rostelecom or Beeline) block incoming connections at home rates.
  • πŸ”„ Double. NAT. If the router is connected via another router (for example, from a provider), port overlay will not work. DMZ main-router.
  • πŸ”’ Firewall locks. Turn off firewall on router (Settings) β†’ Security β†’ Firewall or add an exception for your IP.

Another common mistake is the wrong login details: After resetting the router's settings, logins/passwords are reset to factory ones (admin/admin or root/empty password depending on the model). If you forget your password, restore it via Mi WiFi or Reset button on the case.

⚠️ Attention: On routers with MiWiFi firmware ROM (For example, Mi Router 3) after a reset may require re-assignment to the Mi Account through the QR-sticker.

How to protect your router after setting up remote access

Open access to a router is like a door to your network, so it doesn't get hacked.

  1. Turn off remote access when you don't need it. In Mi WiFi, it's done with a tap.
  2. Use the whitelist. IP. In port port port port port settings (Settings) β†’ Redirection) only indicate your own IP-address.
  3. Update the firmware. Outdated versions contain vulnerabilities (e.g. CVE-2021-27561 in Mi Router 4A).
  4. Set up two-factor authentication in your Mi Account.

πŸ’‘

Even if you use a VPN, regularly check the connection logs in Settings β†’ System Tools β†’ Log. Unknown IPs can signal hacking attempts.

For maximum security, consider alternative firmware like Padavan or OpenWRT, which supports WireGuard, fail2ban, and other security tools, but remember, flashing over warranty voids and requires technical skills.

Alternative solutions: when remote access is not needed

If you only need to reboot your router periodically or check your connected devices, there are safer ways to do this:

  • πŸ”Œ Connect your router via Xiaomi Smart Plug and manage power via Mi Home.
  • πŸ“± In Mi WiFi, turn on alerts for new connections or a downfall of the Internet.
  • 🌐 Cloud services, for cameras or NAS Use Xiaomi Cloud or Synology DSM instead of direct access.

These methods do not require opening ports and minimize risks.For example, the Xiaomi Mi Smart Power Plug smart outlet is worth it. ~1000β‚½ It allows you to restart the router even without access to its web interface.

πŸ“Š What type of remote access do you choose?
Mi WiFi appendix
VPN-server
Telnet/SSH
Smart socket
I won't tune in.

FAQ: Frequent questions about remote access to Xiaomi routers

Can I configure remote access on a router with firmware from the provider (for example, MGTS)?
No. ISPs usually block these features. You need to reset your router to factory settings and flash the original Xiaomi firmware (if the model is supported).
Why does the router not respond from the external network after the port is dropped?
The reasons may be as follows: The provider blocks incoming connections (check the tariff). IP-The router address has changed (use) DDNS). Firewall on router or computer blocking port. IP router in the pass rule (should be 192.168.31.1 or similar). For diagnosis, use the telnet command your external_IP Your port from another device.
How to turn off remote access if you forget your password?
If you have physical access to the router: Press the Reset button on 10 You can reset your settings for a second. Connect to the router via cable and log in through the router. 192.168.31.1 (login: admin/admin). Disable remote access in settings. If access is not available, contact your provider to lock the device on MAC-address.
Can I control the Xiaomi router through a Telegram bot?
Yes, but it requires you to configure a Python script on a separate server (like a Raspberry Pi) or a router with OpenWRT firmware. SSH or API Mi WiFi. The solutions are available on GitHub (see xiaomi router telegram bot: /reboot - router-boot /wifi_off - turn off /connected - show connected devices
Which Xiaomi routers do not support remote access?
The feature is not available on the following models: Mi Router Mini (simplified firmware); Mi Router 3G (obsolete model); ISP-based routers (e.g. Mi Router 4A bundled with MTS); alternative firmware can be tried on these devices, but it is risky.