Setup Minecraft ports on Xiaomi router: the full guide

Organizing your own game world in Minecraft is a fascinating process that often requires going beyond the local network. When you want to invite friends to play together, a standard Wi-Fi connection may not be enough due to the limitations of the router. Owners of Xiaomi equipment often face the need to manually configure network settings to ensure a stable connection.

The main problem is that the router defaults to blocking incoming connections from the external network, considering them potentially dangerous. To make your server visible to other players, you need to perform a procedure known as port rolling or Port Forwarding. This action opens a special “corridor” in the router’s built-in protection, directing game traffic directly to your computer.

In this article, we will discuss in detail the entire process of configuring Xiaomi routers (Mi Router) for the operation of the Minecraft server. We will not use dubious third-party programs, but will configure everything through the official web interface of the device, which guarantees maximum stability and security of your home network.

Preparing for network setup and obtaining static IP

Before moving to the router interface, it is critically important to fix IP-If you don't, the router can change the address of the device after you restart, and the roll rule will stop working. You need to assign your PC a static one. IP-local-network address.

First, find out the current address of your device. To do this, open the command prompt by pressing the Win key combination. + R, enter cmd and press Enter. In the window that appears, type ipconfig and find the string «IPv4-It's usually like an address. 192.168.31.xxx Write down these numbers, they'll be needed later.

Now you need to attach this address to your computer’s network card so that it does not change dynamically through the protocol. DHCP. Go to the Windows network settings, select “Setting Adapter Settings,” right-click on your connection, and select “Properties «IP version 4 (TCP/IPv4)», Open the properties and manually write IP-address, subnet mask and gateway.

⚠️ Attention: When manually entered IP-Make sure that the number you choose at the end (the last octet) is not occupied by another device on the network.

Once you save your settings, check your Internet connection. If sites open, the static address is set correctly. This is the foundation without which port port port port porting on Xiaomi router will not make sense, since the firewall rules are tied to this particular address.

Entrance to the control panel of the Xiaomi router

The next step is to log in to your router’s administrative panel. Xiaomi devices usually have a standard login address, which is most often 192.168.31.1 or the domain name miwifi.com. Open any browser and enter that address into the address bar.

The system will ask for an administrator password. If you've previously set up a router, use the password you set up. If the device is new or the settings have been reset, try the standard password or the one on the sticker at the bottom of the case. Security of access to this panel, because this is where all traffic is controlled.

Once you log in, you'll see the MiWiFi homepage, which shows network status, number of connected devices, and Internet speed, and we need to move to advanced settings, because in "easy management" mode, the necessary functions can be hidden.

  • 🌐 Click on the “Settings” button in the top interface menu.
  • 🔒 Select the System Status or Status tab to make sure the router is connected to the Wide Area Network.
  • ⚙️ Find the Advanced Settings section where technical parameters are hidden.

The interface may vary depending on the firmware version and regional version of the router (Chinese or global), but the logic of the layout of the elements remains similar: look for sections associated with the word "Port", "Forwarding" or "NAT".

Search for Port Forwarding (Port Forwarding)

In the optional settings menu, you need to find the port-dives section, which is often called “Port Forwarding”, “NAT” or “Virtual Servers” on Xiaomi routers, and in some firmware versions, this feature may be inside the “Security” or “Network” subsection.

If you use the Chinese version of firmware, look for characters that correspond to port port overflow, or use the built-in browser translator. The functionality remains the same: creating a rule that links the external port to the internal port. IP-This is the key to setting up the Minecraft server.

Click Add or add to create a new rule, and you'll see a form that requires multiple fields to be filled, and you won't make mistakes because the wrong port will prevent players from connecting to your world.

📊 What is your version of the firmware of the Xiaomi router?
Global (English/Russian)
Chinese (CN)
I don't know / Standard
Firmware from enthusiasts (OpenWrt/Padavan)

It is worth noting that some providers use the technology. CGNAT, which hides your home IP In this case, port port port port port port porting on the router will not help until you have resolved the issue with the provider about obtaining a white port» IP-address.

Creating a rule for the Minecraft server

Now, we're going to go directly to fill in the fields to create the rule. Each field has its own purpose, and understanding the terminology right will help you avoid errors. For Minecraft, the standard port is 25565, which is what we're going to use.

In the “Name” or “Description” field, enter any designation you understand, for example, Minecraft_Server. This is just for your convenience, so you don't get confused in the future, and the system doesn't have any strict requirements for this field.

In the Protocol field, select TCP/UDP or Both. Minecraft uses both protocols to transmit data, so choosing just one protocol can lead to unstable operation or inability to connect. If there is no separate choice of "Both", create two identical rules: one for TCP, the other for UDP.

The External Port and the Internal Port fields must have a value of 25565. IP» (Internal IP) or «IP-Address" enter the static address of your computer that you recorded in the first step. Make sure the rule is turned on (Enable tick).

ParameterMeaningDescription
NameMC_ServerArbitrary name of the rule
ProtocolTCP/UDPProtocol for data transmission
External Port25565Port for incoming connections
Internal IP192.168.31.XXXThe address of your PC on the local network
Internal Port25565Port where the server is listening

After filling in all the fields, click Save or Apply. The router may require a reboot to apply the changes, although current Xiaomi models apply the rules dynamically. Check the rule list: your new rule should appear in the active settings table.

Setup of Windows Firewall and Checking Ports

Opening ports on a router is only half the battle. The operating system on your computer also has built-in protection, the Windows Firewall, which blocks incoming connections to Java applications by default. If you don't configure it, players will never be able to log in to the server.

You need to create a resolution rule in the firewall. Open Control Panel → Windows Defender Firewall → Additional settings. In the left column, select Rules for Inbound Connections and click Create a Rule.

Select the For Port rule type, specify the TCP protocol (and then repeat for UDP), and enter port 25565. In the next step, select the Allow Connection action. Be sure to tick all types of networks: domain, private, and public.

⚠️ Note: If you are using a third-party antivirus (Kaspersky, ESET, Avast, its built-in firewall can override Windows settings, so you need to create the rule in your antivirus interface.

To check all settings correctly, use online port checking services such as 2ip.ru or portchecker.co. Enter port 25565 and press the check button. If the service shows that the port is open, then the configuration is successful.

It is important to understand the difference between local and external IP. Inside the network, friends will connect at your local address, and players from other cities will connect using your external IP, which can be found on the site 2ip.ru.

Typical problems and their solution

Even with careful follow-up, it can be difficult. One of the most common problems is changing the instructions. IP-Provider address, unless your provider provides a static white» IP, Each time you reboot your router, your external address will change, and your friends will have to re-recognize it.

The solution to this problem is to use dynamic DNS services (DDNS). Xiaomi routers often have built-in support for such services or allow you to install plugins, which will allow you to link a domain name to your dynamic IP.

Another common mistake is to run a server on behalf of a regular user without administrator rights. Make sure that the server startup file (such as start.bat) is run with administrator rights so that the system accurately misses network requests.

  • 🔄 Restart your router and computer after making all the settings.
  • 🛡️ Check if your computer is worth the network with a profile "Public", change to "Private».
  • 📶 Make sure that the antivirus does not block java.exe.

If nothing works, try temporarily disabling the firewall and antivirus for diagnosis, and if the port opens, then the problem is exactly in the software blocker, and you need to look for exception settings in it.

Frequently Asked Questions (FAQ)

Do I need to open ports if I only play with friends on a local network (on the same Wi-Fi)?
No, to play inside the same apartment or house, when all devices are connected to the same Xiaomi router, you don't need to throw ports. Just start the server, and friends will see it in the list of available games or can connect to the local one. IP-address.
Is it safe to open ports on a router?
Opening a specific port (e.g., 25565) for a particular application is safe if the server software is updated and does not contain vulnerabilities.
Why does the server see itself and other players don’t?
This is a classic port-drop problem, and chances are you forgot to set up your Windows firewall or made a mistake in your Windows firewall. IP-Address when you create a rule on the router, and also check that your friends type in your external IP-address, not local.
Can I change the standard port 25565 to another port?
Yes, you can change the server-port settings in the server.properties file settings, but you will need to create a pass rule for the new port, and players will need to specify it through the colon after the IP (for example, 1.2.3.4:25566).
Does opening ports affect internet speed?
No, the mere fact that an open port is available does not affect the speed of downloading or downloading files. Traffic starts to go through this port only when players connect to the server, and the load depends on the number of players and the complexity of the world, not on the configuration of the router.