How to open NAT on Xiaomi router: from UPnP to port port port drop

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).

๐Ÿ“Š What kind of guy. NAT you now?
Open (Type 1)
Moderate (Type 2)
Strict (Type 3)
I don't know how to check.

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:

  1. Open the router's web interface at 192.168.31.1 (or miwifi.com).
  2. Log in (the username and password are often admin/password combination from the sticker on the router).
  3. Go to Additional Settings โ†’ UPnP.
  4. 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:

  1. In the web interface, go to Additional Settings โ†’ Port Redirect.
  2. 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/AnnexPorts (TCP/UDP)Note
PlayStation 5/480, 443, 3478-3480, 5223, 8080For online gaming and Party Chat
Xbox Series X/S88, 3074, 53, 80, 500, 3544, 4500Definitely for Xbox Live
Call of Duty: Warzone3074, 27000-27050For stable connection to servers
uTorrent/qBittorrent6881-6889 (by default)Change the torrent client settings
Discord50000-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.

  1. In the routerโ€™s web interface, go to Additional Settings โ†’ DMZ.
  2. Enable the function and specify IP-the address of the target device (e.g. 192.168.31.100).
  3. Save the settings and restart the router.

Solutions for Chinese versions:

  1. OpenWRT Installation: Alternative firmware with full control of NAT. Instructions are available on 4PDA forums (look for a theme for your model).
  2. 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!
  3. 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-inProvider uses CG-NATOrder a white IP or use a VPN with port 1194 (OpenVPN)
Ports are not opening.Router firewall blocks trafficDisable SPI Firewall in Additional Settings โ†’ Security
UPnP is activated but not working.Outdated firmwareUpdate the router to the latest version
DMZ is not applicableConflict with other rulesRemove 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).

FAQ: Answers to Frequent Questions

๐Ÿ”น Why after the port drop NAT Remains moderate (Type 2)?
Type 2 means ports are open, but the router is still modifying packets (SNAT). Type 1 (open) is only required for hosting servers or some of the games. P2P-If the games are running without lags, there's nothing to fix.
๐Ÿ”น Can I open it? NAT without access to the routerโ€™s web interface?
Yes, via the Mi Wi-Fi mobile app: Open the app and connect to the router. Go to Settings โ†’ Additional โ†’ Port Redirect. Add a rule just like in the web interface. Restriction: There are no DMZ settings in the mobile version.
๐Ÿ”น How to open NAT Minecraft server on Xiaomi?
To host a Minecraft server, flip TCP/UDP port 25565 to the IP server. If players can't connect: Check that server-ip=your white IP (not local!) is specified in server. Turn off plugins like NoCheatPlus that can block connections. If you use Hamachi, port rollover is not necessary, play over the virtual network.
๐Ÿ”น Why After Updating Your Firmware NAT stern?
Updates sometimes reset security settings. After the update: Check if UPnP is enabled. Resave port-over rules. If you use OpenWRT, update the iptables pack with the command: opkg update &&opkg upgrade iptables
๐Ÿ”น How to check if a specific port is open?
Use online services like YouGetSignal or the command in CMD: telnet is yours_IP port If the connection is established, the port is open. UDP-PortQry utility from Microsoft is suitable.