Port rollover on Xiaomi Mi Router 4: full instructions for games, torrents and more

Opening ports on the Xiaomi Mi Router 4 router is a necessary procedure if you want to start a home server, improve connection in online games like CS2 or Call of Duty, speed up torrent downloads or configure remote access to security cameras. Despite the seeming complexity, the port rollover process takes no more than 10 minutes, if you follow the instructions clearly.

The main problem is that users don't understand terms like "ports rolling," "static IP" or "DMZ." In this article, we'll take each step through the Mi Router 4 (including MiWiFi and Padavan firmware), explain why each option is needed, and warn against common mistakes. If you're a beginner, don't worry: we avoid technical jargon and give explanations on the fingers.

Important: before setting up, make sure that your ISP does not block incoming connections (relevant for Beeline, Rostelecom and some MTS tariffs). If the ports do not work after the rollover, the problem may be on the operator's side.

๐Ÿ“Š Why do you splash ports?
Games (CS2, Minecraft, GTA Online)
Torrents (qBittorrent, uTorrent)
Remote Access (RDP, TeamViewer)
Video surveillance (cameras, NVR)
Home server (NAS, Plex)
Other

What is port port transfer and why it is needed

Imagine that your router is a security guard in an office building, and when an external device (such as a game server or torrent tracker) tries to "call" you, the security guard won't miss the call because he doesn't know who it is intended for. Port rolling is an instruction to the security guard: "If someone knocks on port 25565, let him to my computer with IP 192.168.31.100."

Without open ports, you canโ€™t:

  • ๐ŸŽฎ Create your own servers in games (Minecraft, Counter-Strike, Terraria).
  • ๐Ÿ“ฅ Receive incoming connections in torrent clients (without this, the download speed will be lower).
  • ๐Ÿ–ฅ๏ธ Connect to a home PC remotely via RDP or TeamViewer, bypassing their servers.
  • ๐Ÿ“น Set up access to security cameras from the outside (e.g., via the Xiaomi Home app).

On Xiaomi Mi Router 4, port forwarding is done through Port Forwarding, but two prerequisites must be met beforehand:

  1. Assign a static IP to the device (so that the router always โ€œknowsโ€ where to redirect traffic).
  2. Make sure that the target device (PC, NAS, camera) is running an application that โ€œlistensโ€ to the desired port.

โš ๏ธ Warning: Opening ports reduces the security of your network. If you are scrawling through a port for play or torrenting, make sure the device has an antivirus and firewall installed. For critical services (e.g., RDP), it is better to use VPN instead of direct dash.

Preparation: Assign static IP to the device

If you don't assign a permanent IP- address to your device, the router can assign a different address to it after the reboot and the port rollout will stop working. On the Mi Router 4, this is done by associating the MAC- address to the IP.

Instructions:

  1. Connect to the router via Wi-Fi or cable.
  2. Open your browser and type 192.168.31.1 (or miwifi.com).
  3. Log in (the default login and password is usually admin/admin combination or is indicated on the router sticker).
  4. Go to Additional Settings โ†’ Network โ†’ Local Network โ†’ DHCP.
  5. Find the device in the list for which you need to open ports, and click Reservation.
  6. Specify the desired IP- address (e.g., 192.168.31.100) and save it.

Example of IP backup for PCs with MAC- address 00:1A:2B:3C:4D:5E:

ParameterMeaning
MAC-address00:1A:2B:3C:4D:5E
Reserved IP192.168.31.100
DescriptionGaming PC (CS2)

Make sure the device is connected to the router|Reserve static IP into DHCP|Write it down. MAC-address and assigned IP|Check that the target port is not blocked by the Windows firewall-->

โš ๏ธ If you already have a device on your network IP 192.168.31.100, select another address from the range 192.168.31.2-192.168.31.254. IP-Addresses will cause you to lose contact.

Port rollover on Xiaomi Mi Router 4: step-by-step instructions

Now, to the main stage, on the Mi Router 4 with the original MiWiFi firmware, the path to settings may be different from alternative firmware like Padavan, and we'll look at both.

Method 1: Original MiWiFi firmware

  1. Go to the router control panel (192.168.31.1).
  2. Go to Additional Settings โ†’ Redirect โ†’ Port Redirect.
  3. Press Add the rule.
  4. Fill in the fields: Rule name: Any (e.g., "CS2 Server"). Protocol: TCP, UDP or TCP/UDP (select depending on application requirements). External port: Port that will be open "outside" (e.g., 27015 for CS2). Internal port: Usually the same as the external (unless the application requires otherwise). Internal IP: Static IP devices (e.g., 192.168.31.100).

Save the rule and restart the router.

Method 2: Padavan firmware (alternative)

If you are using Padavan, the path will be different:

  1. Go to 192.168.1.1 (address may vary).
  2. Go to Firewall โ†’ Port Forwarding.
  3. In the Custom Rules field, add a line of the form: iptables -t nat -A PREROUTING -p tcp --dport 27015 -j DNAT --to-destination 192.168.1.100:27015 (replace 27015 and 192.168.1.100 with their values).
  4. Save and restart the router.

How to check:

  1. Run a program on the target device that uses a port (such as a game server or torrent client).
  2. Open one of the services above and enter the port number.
  3. If the port is open, you will see either Open or Success status.

If the port is closed:

  • Check that the rule of the pass is saved in the router.
  • Make sure that the Windows/ antivirus does not block the port.
  • Restart the router and device.
  • If nothing helps, contact the provider (it may be blocking incoming connections).
What if the provider blocks the ports?
Many Russian providers (especially Beeline and Rostelecom) block incoming traffic to ports below 1024 by default. Solutions: 1. Call support and ask to disable the lock (sometimes this is a paid option). 2. Use a port above 1024 (for example, 25565 for Minecraft instead of 25560). 3. Set up a VPN or cloud proxy (for example, Cloudflare Tunnel) if direct pass is not possible.

DMZ and UPnP: Alternative ways to open ports

If port rollover doesnโ€™t work or you need to open many ports at once, consider two alternative methods:

1. DMZ (Demilitarized Zone)

DMZ redirects all external requests to a single device on your network, which is convenient but highly insecure, making the device vulnerable to attack.

How to turn on:

  1. Go to the Additional settings โ†’ Redirect โ†’ DMZ.
  2. Enter the IP of the device (e.g. 192.168.31.100).
  3. Save and restart the router.

2. UPnP (Universal Plug and Play)

UPnP allows devices (like game consoles or torrent clients) to automatically open ports without manually configuring.

How to turn on:

  1. Go to Additional Settings โ†’ UPnP.
  2. Activate the switch Enable UPnP.
  3. Save the settings.

โš ๏ธ Warning: Don't use DMZ and UPnP at the same time as manual port-drift, which creates conflicts and security holes. If you turn on DMZ, turn off UPnP, and vice versa.

๐Ÿ’ก

UPnP is convenient for gaming (Xbox, PlayStation) and torrenting, but it is best turned off when it is not needed.DMZ should only be used temporarily and only for trusted devices.

Typical errors and their solutions

Even after you set up the ports properly, here are the most common reasons and ways to fix them:

Problem.Reason.Decision
The port won't open.Provider blocks incoming connectionsCall for support or use VPN
The pass rule does not remainFirmware failure or lack of memoryReset the router to factory settings
The port is open, but the connection is not working.Windows Firewall Blocks PortAdd an exception to the firewall for the program
The IP of the device is lost after restartingNot fixed static IPReserve IP over DHCP (see section above)

Another common mistake is to skip the wrong protocol, like Minecraft needs TCP, and Call of Duty needs UDP, and specify the port requirements in the game or program documentation.

How do I know what protocol is needed?
If the program instruction doesn't specify a protocol, try both options: 1. Create two rules: one for TCP, one for UDP. 2. Check the port using PortChecker for each protocol separately. 3. Remove the unnecessary rule after the test.

How to protect your network after opening ports

Open ports are like open windows in your home, and can be used by thieves as well as guests.

  • ๐Ÿ”’ Use complex passwords on devices that have ports open (especially for RDP or FTP).
  • ๐Ÿ›ก๏ธ Update the routerโ€™s firmware โ€“ older versions have vulnerabilities.
  • ๐Ÿ”„ Turn off port port port port port port port port transfer when they are not needed (e.g. after play).
  • ๐ŸŒ Set up a guest network for open-port devices (if the router supports).

For maximum safety:

  • Replace the standard router admin/admin password with a complex one.
  • Disable remote access to the router control panel (Additional settings โ†’ System โ†’ Remote management).
  • Use a VPN instead of direct dash for critical services (such as OpenVPN or WireGuard).

If you are using security cameras, you must:

  • Turn off access via HTTP, leave only HTTPS.
  • Set up two-factor authentication in the camera app.
  • Check your connection log regularly for suspicious activity.

FAQ: Answers to Frequent Questions

Can I open ports on Xiaomi Mi Router 4 without static IP?
Technically, yes, but it doesn't make sense: if the device's IP changes (for example, after the router is restarted), the pass will stop working. IP reservation via DHCP takes 2 minutes and guarantees stability.
What port to open for Minecraft server?
Minecraft Java Edition uses port 25565 (TCP protocol) by default. If you have changed the port in the server.properties file, specify it. Bedrock Edition requires port 19132 (UDP protocol).
Why is the port closed after the drop?
The reasons may be: the provider blocks incoming traffic (relevant to Beeline, Rostelecom); Windows firewall or antivirus (e.g. Kaspersky, Avast) blocks the port; you have entered an incorrect internal IP or port number; the target device does not run an application that "listens" the port; check each item in order.
How to open ports for qBittorrent (uTorrent) client?
Torrents: Find Connection and port (e.g. 6881) in the client settings; flip the port range (e.g. 6881-6889 for TCP and UDP); turn on UPnP in the torrent client settings (if you use); check the port status in the client after the dash, a green icon or Connected sign should appear.
Can I open ports through the Mi WiFi mobile app?
No, the official Mi WiFi app does not have port-dropping functionality, and can only be configured via the router's web interface (192.168.31.1). Alternative firmware (e.g., Padavan) can offer their mobile applications with advanced features.