How to open a port on the router Xiaomi Mi Router: step-by-step instructions

Managing network flows and configuring access from an external network is a task that every advanced home Internet user sooner or later faces. Owners of Xiaomi equipment often wonder how to open a port on a router to ensure stable operation of game servers, video surveillance or torrent trackers. NAT, which can block incoming connections and reduce the speed of data exchange in P2P-network.

The Port Forwarding process on Mi Router devices requires care, as the firmware interface can vary depending on the regional version and device model. Incorrect configuration can lead to security vulnerabilities in your local network, so it is important to understand not only the sequence of actions, but also the principles of network protocols. In this article, we will discuss in detail all the stages of configuration, from assigning a static address to checking open connections.

Before you start making changes to the web interface, you need to make sure you have administrator rights and physical access to the device. Port rollover is a mechanism that redirects incoming traffic from a specific port of the router's front-end to a specific port of the router's front-end. IP-The address of the device within your local network. Without this procedure, the router defaults to block incoming requests, considering them potentially dangerous.

Preparation of the device for port transfer

The first and most critical step is to fix IP-Addresses of the device for which access is planned. Dynamic addressing by protocol DHCP This means that every time you reconnect, your computer or game console may receive a new address, which will cause previously configured routing rules to fail. To avoid a connection break, you must reserve the address or register it statically in the settings of the client device itself.

It is recommended to select an address from a range that does not fall into the pool of automatically issued addresses to avoid conflicts. For example, if a router gives out addresses from 100 to 200, it is logical to assign the server an address of 50 or 250, which ensures that the automatic distribution system does not try to give this address to another gadget that is connected to the network.

β˜‘οΈ Preparation for setting up the router

Done: 0 / 4

For static registration of the address in Windows, you need to go to the properties of the network adapter and select the protocol IPv4. In the window opened, manually indicate IP-Address, subnet mask (usually 255.255.255.0), main gateway (your Xiaomi router address) and preferred DNS-After saving the settings, check the ping command connection to the gateway to ensure the stability of the communication.

Entrance to the control panel of the Xiaomi router

The router’s settings are accessed via a web browser or a specialized mobile application. The classic method involves entering the default gateway address into the browser’s address bar. For most Xiaomi models, this is 192.168.31.1 or the domain name miwifi.com. If standard addresses do not work, check the network connection settings on your PC - in the column "Main gateway" will indicate the current IP-router.

If you try to log in, the system will ask for an administrator password. If you haven't changed it before, try the standard combination, which is often indicated on the sticker at the bottom of the device, but for security reasons it is better to set a unique complex password. Modern versions of MiWiFi OS firmware may require you to log in through your Mi Account, which provides additional protection, but requires an active Internet connection to log in.

⚠️ Warning: When you change your administrator password, make sure to write it down in a safe place. Reset router settings to factory (Reset) will remove all configurations, including the provider settings, and you will have to configure the network again.

The management interface can be in Chinese or English, depending on the firmware version. For global versions, Russian is available, which can be selected from the Settings β†’ Status β†’ Language section. If the menu is in a foreign language, focus on icons and Latin partition names such as Common settings or Advanced.

πŸ“Š What is the firmware version of your Xiaomi router?
Global (Global)
Chinese (CN)
Embroidered (OpenWrt/Pandora)
I don't know.

Search for Port Forwarding in the interface

The location of port port port port port port port port port settings depends on the router interface version. In the classic green interface of older models, you need to go to the Advanced settings tab, and then select the Port forwarding section. In newer versions of firmware with a blue interface, the path can look like Settings β†’ NAT or Firewall Virtual β†’ Servers.

If you can’t find the relevant section, search for settings or look at your specific model documentation, as the Xiaomi Mi Router 3, 4, AX3600 and other versions may have different menu structure.

In some cases, especially on Chinese firmware versions, the desired option may be called NAT Or Virtual Server. The logic of the work is the same: you create a rule that connects the external port to the internal port. IP-It's important not to confuse this section with the settings. DMZ, Opening all ports to a single device is a less secure method.

What if there is no Port Forwarding section?
If you don't find an explicit port port port port port port port section, try switching the router mode. In some firmware, this feature is only available in Router Mode and is blocked in Access Point Mode or Relay mode. Also check if Game Acceleration mode is enabled, which can automatically control ports by hiding manual settings.

Set up port rolling rules

When you go to the desired section, you need to create a new rule: press the Add button or the plus icon. You will see a form that requires you to fill in several mandatory fields. The accuracy of data entry is critical: one error in the port number or protocol type will make the rule unworkable.

In the Name field, enter an arbitrary name for the rule, for example, "Minecraft_Server" or "Camera_Living". This will help you navigate the list if there are more rules. In the Protocol field, select the type of traffic: TCP, UDP or TCP/UDP (Torrents usually require both protocols, web servers only. TCP, VoIP telephony is often required. UDP.

The most important step is to specify the addresses. In the External Port field, specify the port number that will be open to access from the Internet. In the Internal Port field, the same number is often copied unless the application requires you to transfer to another port within the network. IP (Internal IP) Type in the static address of the device you prepared in the first step. Remember to activate the rule by ticking or switching the device in the Enable position.

πŸ’‘

Use a port range if an application requires multiple connections, for example, torrent clients are often advised to open ports in the 6881-6889 range, although modern clients work through a single random port.

After filling in all the fields, click Save. The router will apply the changes and the new rule will appear in the active list. Some models require a reboot to take effect, although most changes are instant. Check the rule list: your new profile should show as active.

ParameterDescriptionExample of meaning
NameThe name of the rule for conveniencePS5_Game
ProtocolType of network protocolTCP/UDP
External PortPort for external access3074
Internal IPAddress of the device on the local network192.168.31.150
StatusStatus of the ruleEnabled

Using DMZ and Gaming Acceleration

If the individual port rollover doesn't solve the problem, or if the application uses random ports that can't be predicted, you can use DMZ mode, which completely sniffs out all incoming traffic to the specified device, bypassing the router firewall, a radical solution that guarantees the operation of any application, but significantly reduces the security of the computer located in the DMZ.

For activation DMZ Find the appropriate section in the security settings or NAT. You'll need to point out IP-Address of the device and activate the function. DMZ only temporarily, for testing or if you have absolute confidence in the security of the operating system of the target device. DMZ not recommended.

An alternative to manual pass is the Game Acceleration feature, available on many routers.