If you are experiencing problems in online games (Call of Duty, Fortnite, GTA Online, torrents or video calls through Zoom/Discord, The culprit often becomes closed. NAT-Type on the router. Xiaomi devices (series Mi Router) 4/4A/4C/5/6/AX) The default is to use strict security settings that block incoming connections. In this article, we'll discuss how to open correctly. NAT โ From enabling UPnP to manual port rollover and settings DMZ, Make sure your Xiaomi router stops restricting network traffic.
It is important to understand the term โopenโ NATยป โ It's a simplification. It's really about a type change. NAT From Strict (Type 3) or Moderate (Type 2) to Open (Type 1). P2P-Unintermediated connections, which is critical for multiplayer and file sharing. We'll look at all the working methods for the MiWiFi (Chinese/global) firmware and OpenWRT (if you installed one).
1. Verification of the current NAT type
Before you set up a router, make sure that the problem is in it. The type of NAT is determined not only by the router, but also by the provider (for example, Rostelecom or Beeline can use CG-NAT, which cannot be opened by the router settings).
- ๐ฎ For gaming consoles: Settings โ Network โ Checking the connection (on PlayStation/Xbox type NAT).
- ๐ฅ๏ธ On PC: Launch the team in CMD: Netsh interface teredo show state Type line will show the current status (ideally open).
- ๐ Online Services: Take the test on sites like whatismyip.com/nat-check.
Critical detail: if all devices on your network show strict NAT, and port rollover does not help, it is the fault of the provider. Contact support to ask for white static IP (often a paid option).
2. Enabling UPnP is the easiest way
UPnP (Universal Plug and Play) automatically taps ports for devices requesting access, an out-of-the-box solution for most games and applications. On Xiaomi routers, the function is enabled as follows:
- Open the router's web interface at 192.168.31.1 (or miwifi.com).
- Log in (the username and password are often admin/password combination from the sticker on the router).
- Go to Additional Settings โ UPnP.
- Activate the switch Enable UPnP and save the settings.
Once activated, restart the router (System Tools โ Reboot) and re-check the NAT type.
- ๐ Make sure the feature is supported by your firmware (some Chinese versions of MiWiFi UPnP are hidden).
- ๐ Try resetting the router to factory settings (System Tools) โ Recovery).
- ๐ฑ Update the firmware to the latest version (Firmware Update) โ Check for updates).
๐ก
If UPnP doesnโt work for a particular game (like War Thunder), try manually adding an exception to its executable file in the Windows Firewall (Control Panel โ Firewall โ Allow Program).
3. Manual port port forwarding (Port forwarding)
If UPnP didn't help, or you want precise control, use port dashing. IP-Device addresses and ports to open. First, find the local address. IP your PC/console:
- ๐ฅ๏ธ On Windows: Do in CMD: ipconfig Search for a string IPv4-address in your connection block (e.g. 192.168.31.100).
- ๐ฎ Nana PlayStation/Xbox: Settings โ Network โ View of the connection status.
Now we'll set up a pass on the router:
- In the web interface, go to Additional Settings โ Port Redirect.
- Click Add Rule and fill in the fields: Service name: any (e.g, PS5_NAT). Protocol: TCP/UDP External port: port to be opened (see table below). Internal port: same as external port. IP-address: local IP your device (e.g., your device, 192.168.31.100).
Save the rule and restart the router.
| Device/Annex | Ports (TCP/UDP) | Note |
|---|---|---|
| PlayStation 5/4 | 80, 443, 3478-3480, 5223, 8080 | For online gaming and Party Chat |
| Xbox Series X/S | 88, 3074, 53, 80, 500, 3544, 4500 | Definitely for Xbox Live |
| Call of Duty: Warzone | 3074, 27000-27050 | For stable connection to servers |
| uTorrent/qBittorrent | 6881-6889 (by default) | Change the torrent client settings |
| Discord | 50000-60000 (UDP) | For voice chats and streams |
Important: If your ISP uses dynamic IP, the local address of the device may change. To avoid manual rule editing, assign the device a static IP in the router settings (Network โ Local Area Network โ IP/MAC binding).
Find out local IP console|Open ports 80, 443, 3478-3480|Tie it down. IP ce MAC-address|Reboot the router and console|Check the type NAT customized PS5-->
4.DMZ setup is a radical solution
DMZ (Demilitarized Zone) is a gray method that redirects all external ports to one device on the network, only use it if other methods have failed, as this reduces security.
- In the routerโs web interface, go to Additional Settings โ DMZ.
- Enable the function and specify IP-the address of the target device (e.g. 192.168.31.100).
- Save the settings and restart the router.
Solutions for Chinese versions:
- OpenWRT Installation: Alternative firmware with full control of NAT. Instructions are available on 4PDA forums (look for a theme for your model).
- Using Telnet/SSH: You can manually add iptables rules to port port-over via the console. Example: iptables -t nat -A PREROUTING -p tcp --dport 3074 -j DNAT --to-destination 192.168.31.100:3074 Root rights and knowledge of Linux are required!
- Buying a global version: If the router is new, consider swapping for a model with MiWiFi Global firmware (e.g., Mi Router 4A Gigabit Edition).
๐ก
Chinese MiWiFi firmware often blocks NAT settings due to local censorship laws, and the only legal way to get around this is to flash a router on OpenWRT or buy a global version.
6. Additional Tips for a Stable NAT
Even after successfully opening NAT, you may run into problems. Here's how to avoid them:
- ๐ Double. NAT: If you have two routers (for example, from a provider) + Xiaomi, disable the first one or put it in Bridge Mode. NAT It will be double and the games will not work.
- ๐ก๏ธ Windows Firewall: Add exceptions to Windows Defender Firewall games โ Additional settings. For example, for Steam, open ports. 27000-27050 UDP.
- ๐ก Wi-Fi vs Ethernet: For consoles and PCs, use wired connection โ over Wi-Fi NAT It can be defined as a strict protocol.
- ๐ Regular reboot: Reboot your router once a week (System Tools) โ Reboot) to reset possible errors NAT.
IPv6 problem: If your ISP supports IPv6 and it is enabled in your router settings, it may conflict with NAT. Try disabling IPv6 to the Network โ IPv6 and restarting the device.
๐ก
To check the connection quality after setting up the NAT, use the Speedtest service with the Ping option enabled under load. If the ping is stable below 50 ms, the settings are applied correctly.
7. Frequent errors and their solutions
Even experienced users make mistakes when setting up NAT. Let's take a look at the most common:
โ ๏ธ Note: If the Internet is lost after port rollover, check if external ports conflict with router services (for example, port 80 is used by Xiaomi web interface).
| Mistake. | Reason. | Decision |
|---|---|---|
| NAT remains strict after throw-in | Provider uses CG-NAT | Order a white IP or use a VPN with port 1194 (OpenVPN) |
| Ports are not opening. | Router firewall blocks traffic | Disable SPI Firewall in Additional Settings โ Security |
| UPnP is activated but not working. | Outdated firmware | Update the router to the latest version |
| DMZ is not applicable | Conflict with other rules | Remove all port rollover rules before activating DMZ |
If none of the methods worked, check:
- ๐ Connect to a router: Make sure the device is connected directly, not through a repeater (Mi Wi-Fi Repeater).
- ๐ก Router mode: In the settings Network โ The mode of operation should be selected by the router, not the access point.
- ๐ Reset: If the settings are โlostโ, reset the router with the Reset button (hold 10 seconds).