Creating your own game world in Minecraft is a fascinating process that often requires connecting friends from other networks. However, standard home Internet settings, especially when using popular Xiaomi routers, block incoming connections by default. This is done for security reasons, but creates obstacles to hosting servers. In order for your friends to join the game, you need to perform a procedure known as port rolling or Port Forwarding.
Xiaomi and Redmi devices are often used as the main gateways to the apartment due to their availability and functionality. The interface of their operating system, whether it is old firmware or new MiWiFi, has its own features that can confuse the beginner. Unlike simple mobile hotspots, full-fledged routers require manually configuring routing rules. Without this, an external query simply will not know which device on your local network to transfer game data.
In this article, we will discuss in detail the entire process, from preparing a computer to checking the availability of a server from a wide area network. IP-The address where to find the right fields in the web interface and which ports to use for different versions of the game.
Preparation of equipment and obtaining static IP
The first and most important step before setting up a router is to fix the local address of your computer or device running the Minecraft server. DHCP can change this address after rebooting, which will cause the created rules of the dash. IP-address within your local network.
To do this, in Windows, open the command line by entering cmd in the search menu, and execute the command ipconfig. You will need the values "Primary Gateway" (usually 192.168.31.1 for Xiaomi) and Β«IPv4-Write down this data, because it's going to be used to log into the router's admin panel and configure the computer itself.
β οΈ Warning: Make sure your computer is connected to the Xiaomi router via the cable or Wi-Fi frequency you plan to use for the game, so as not to confuse network interfaces when setting up.
Once you have the data, you go to network card configuration. In network settings, select your adapter, go to protocol properties. IP version 4 (TCP/IPv4) And you can manually write the address. It's important to choose an address out of range. DHCP-a router pool to avoid conflicts, such as if the router is giving away addresses from 100 before 200, give the computer the address 192.168.31.50.
π‘
Use 192.168.31.2 or 192.168.31.10 for the server to make it easy to remember and distinguish from other devices on the network.
Log in to the web interface of the Xiaomi router
Once your computer's network settings are fixed, log in to the Xiaomi router control panel. Open any modern browser and enter the gateway address you previously learned in the address bar. For most Mi Router devices, the standard address is 192.168.31.1 or the domain name miwifi.com.
If you're setting up your router for the first time, it could be a Wi-Fi password or a specially defined security code. In new models with support for cloud technologies Xiaomi Cloud may require binding through a mobile application, but local input is usually available on the Internet. IP-address.
The interface can be in Chinese or English depending on the firmware version. If you see Chinese characters, look for the language switch button in the upper right corner or use the translator in your browser to find the settings section. The main tabs are usually located on the top or left as a horizontal menu.
Search Port Forwarding and Create a Rule
In the routerβs settings menu, you need to find the port-over section. In Xiaomi interfaces, it is often called Port Forwarding, Port Forwarding, or in advanced NAT settings. In some firmware versions, this feature is hidden in Advanced Settings -> System Status -> Port Forwarding.
Press the Add New Rule button (usually marked with a symbol Β«+Β» Or the word "Add" -- you'll see a form that you need to fill in the correct data, and if you make a single digit error, you'll be unable to see the server from the outside. IP-The computer address you recorded in the first phase.
For Minecraft Java Edition server, the standard port is 25565. If you use Bedrock Edition, the ports may differ (usually 19132). The protocol should be chosen by TCP/UDP or "Both" to ensure maximum compatibility. Some old manuals recommend choosing only TCP, but modern versions of the game require handling both types of traffic.
| Parameter | Importance for Minecraft Java | Importance for Minecraft Bedrock | Description |
|---|---|---|---|
| Name | MC_Java | MC_Bedrock | Arbitrary name of the rule |
| Protocol | TCP/UDP | UDP | Type of traffic transmitted |
| External Port | 25565 | 19132 | Port for external connections |
| Internal Port | 25565 | 19132 | Port listened to by the server |
| Internal IP | 192.168.31.X | 192.168.31.X | Local IP of your PC |
Setup of Windows Firewall and Antivirus
Even if the Xiaomi router is properly configured and allows traffic to pass, the computer operating system can block incoming connections. Windows Firewall (Windows Defender Firewall) by default prohibits unauthorized login. You need to create an exception rule for the executable server file (java.exe or a separate exe file of the server).
Open Control Panel -> Windows Defender Firewall -> Additional settings. Under Inbound Connections Rules, create a new rule. Select Program Type, specify the path to java.exe or server startup file, and allow connection for all network profiles (private, public, domain).
β οΈ Note: If you are using a third-party antivirus (Kaspersky, ESET, Avast, its built-in firewall can ignore Windows settings. Check the network security settings in the antivirus itself and add Minecraft server to the list of trusted applications.
It's also worth checking if Invisibility or Public Network mode is on for your connection. In Windows network settings, switch your profile to Private Network so that the system considers your environment safe and allows device detection, which often solves the problem when the server is running but does not respond to ping.
βοΈ Checklist of server preparation
Port accessibility check and diagnostics
After you have applied all the settings, you need to make sure that the port is really open. Simply running the server is not enough. To check, use online services such as PortChecker or YouGetSignal. Enter the port number (25565) and press the check button. The service will try to connect to yours. IP-address.
If the server is turned off, the test will show that the port is closed, even if the router settings are correct, and also make sure that you check the port that you specified in the Port Forwarding rules.
If the test shows βClosedβ or βFiltered,β check the external IP-Go to the website. 2ip.ru Compare the address the site sees with the address in WAN-If they're different, your ISP uses the technology. CG-NAT, Direct port transfer is impossible without contacting technical support.
What is CG-NAT and how to live with it?
Common mistakes and ways to solve them
One of the most common problems is change. IP-the computer address after the restart, unless you have fixed the address in the network card settings or in the DHCP-In the reserve of the router, the rollover rule will stop working because it will lead nowhere.
Another common mistake is choosing the wrong protocol. Minecraft is sensitive to traffic type. If friends on phones (Bedrock) can't log in and from a PC (Java) come in, try changing the protocol in the Xiaomi router from TCP to UDP or TCP/UDP. Also make sure that the version of the game on the server matches the version of the customers.
Sometimes the antivirus software doesn't block the program, but the network port itself. Try temporarily disabling the firewall for diagnostics. If you do, then the connection appears, then the problem is the security settings of the software. Remember to return the protection after setting the exceptions.
β οΈ Warning: Never open ports for untested programs. Opening port 25565, you potentially expose your computer to scan. Make sure that the server has security plugins (such as AuthMe) that require registration so that random players do not gain access to the console or the files of the world.
Use of alternative methods of connection
If the standard port port overlay on a Xiaomi router does not work due to provider limitations or the complexity of settings, there are alternative solutions. Virtual LAN programs such as Radmin VPN, Hamachi or ZeroTier allow you to connect computers into a single network over the Internet without opening ports on the router.
These solutions are ideal for playing with a small circle of friends (up to 10 people), all participants install the program, connect to the common network and use a virtual network. IP-The host address for the login. CG-NAT dynamic IP-Addresses, although may increase ping slightly due to traffic encryption.
For public servers, it is still recommended to achieve work through direct port port port port port port port port drip on the router, as this ensures the best performance and stability of the connection. Owners of Xiaomi routers with support for OpenWrt firmware are available more subtle firewall and QoS settings, which allows you to optimize game traffic even more efficiently.
π‘
Direct port port port overlay on the router gives minimal ping and maximum stability, while VPN-solutions are suitable for fast play with friends without deep network settings.