Opening ports on Xiaomi Mi Router 4A: full instructions with pictures and tips

Port port port transfer on the router is a task that sooner or later faces everyone who wants to organize remote access to a home server, IP-To play a multiplayer game or to play a camera. 4A (including modifications to the Gigabit Edition and 100M Edition offers all the tools you need, but the admin interface can be confusing for beginners. ASUS, where port settings are prominently displayed, Xiaomi has them hidden in the Advanced Settings section, and some features (such as UPnP) donโ€™t work as clearly as youโ€™d like.

In this article, we will analyze not only the basic port span, but also alternative methods - from setting up DMZ-host before using a static IP We will focus on common mistakes: why ports can't open even after setting them up properly, how to check for external availability, and what to do if the provider blocks incoming connections. If you have never logged into the router control panel before, donโ€™t worry: weโ€™ll start with the basics, including logging in to the web interface and changing the default password.

Mi Router 4A runs on MiWiFi firmware, which is updated regularly. If your router hasn't received updates in a long time, some menu items may differ. We'll show you the current paths for the latest software (2023-2026), but if the interface looks different, check the firmware version in General Settings โ†’ System Status.

Launching a game server (Minecraft, CS:GO)

Remote access to your home PC (RDP, SSH)

Connection IP-camera NAS

Working with torrent trackers

Another option-->

1.Preparation: entrance to the control panel and basic settings

Before you throw ports, you need to go to the web interface of the router. by default Xiaomi Mi Router 4A use IP-192.168.31.1 (or 192.168.0.1 in some regions) If this address does not open, check:

  • ๐Ÿ”Œ Connect to the router via cable or Wi-Fi (make sure you are connected to its network, not to the neighboring one).
  • ๐ŸŒ Correctness of the address entry in the browser (without http:// www).
  • ๐Ÿ”„ Reset router (reset button on the back hold 5 seconds if you forget your password).

When you first log in, the system will ask for a username and password. By default, this is the combination indicated on the sticker under the router (usually an admin and an 8-digit password). If you haven't changed this data, go straight to General Settings โ†’ Device Management and set a new password. Use a complex combination - open ports make the router more vulnerable to attacks.

โš ๏ธ Note: If you're connected to a router via Mi Home, the web interface may be disabled. To turn it on, go to the app, select the router. โ†’ Settings โ†’ Additionally. โ†’ Web administration and activate the option.

After you log in, update your router firmware: General Settings โ†’ Update your firmware. This is important because older versions had bugs with NAT and port port scattering. If the update isn't available, check your Internet connection or try resetting your router to factory settings.

2. The purpose of static IP: why it is necessary

Ports transfer on Xiaomi Mi Router 4A It requires a specific local link IP-The router, by default, gives out addresses dynamically (DHCP), and after restarting the device, IP It can change, and with it, the abandoned ports will stop working. IP.

This can be done in two ways:

  1. Through router settings: ๐Ÿ“ฑ Go to Advanced Settings โ†’ Local area network โ†’ DHCP. ๐Ÿ” Find the device list for which you open ports (by name or by name) MAC-address). ๐Ÿ“ Click on it and select Reserve. IP. Please specify the desired address (e.g. 192.168.31.100) and save.

Manually on the device:

  • ๐Ÿ–ฅ๏ธ On PC: Control panel โ†’ Network and Internet โ†’ Network control centre โ†’ Change of adapter parameters โ†’ Properties IPv4.
  • ๐Ÿ“ฑ On Android: Settings โ†’ Wi-Fi โ†’ [your network] โ†’ Additionally. โ†’ Settings IP (Static).
  • Save: Click Save and restart the router (required!).

Important: If you are scrubbing a port for a torrent client (e.g., qBittorrent or uTorrent), make sure that the program settings are the same port as the router rule, otherwise the torrents will run slowly or will not be distributed.

Examples of popular ports for transfer:

  • ๐ŸŽฎ Game servers: 25565 (Minecraft), 27015 (CS:GO), 7777 (7 Days to Die).
  • ๐Ÿ–ฅ๏ธ Remote access: 3389 (RDP), 22 (SSH), 5900 (VNC).
  • ๐Ÿ“น IP-cameras: 80 (HTTP), 554 (RTSP), 1935 (RTMP).
  • ๐Ÿ”„ Torrents: 6881-6889 (standard range, but it is better to choose a random port (for example, 45678).

๐Ÿ’ก

If you need to open a range of ports (for example, for VoIP or certain games), in the "Outside Port" field, specify the initial and final port through a dash: 5060-5080. The internal port must match or be single if the redirect goes to the same address.

4. Alternative methods: DMZ and UPnP

If port rollover is not working or you need to open all ports for a single device (for example, for testing), you can use the port. DMZ-This redirects all incoming connections to the device of choice, which is convenient but not secure โ€” this is not recommended for constant operation.

Setting up DMZ on Xiaomi Mi Router 4A:

  1. Go to Advanced Settings โ†’ Redirect โ†’ DMZ.
  2. Enable the function and specify the static IP device.
  3. Save and restart the router.

UPnP (Universal Plug and Play) is another way to automatically open ports for compatible programs (such as torrent clients or games) to enable:

  1. Go to Advanced Settings โ†’ Redirect โ†’ UPnP.
  2. Activate the slider and save it.

โš ๏ธ Note: UPnP is convenient, but it creates security holes โ€” any program on your PC can open ports without you knowing. If you're not using UPnP-enabled applications, it's best to keep that feature offline.

What's the danger of DMZ?
DMZ-The host opens the device completely to attacks from the Internet. If it has vulnerabilities (such as unupdated software or weak passwords), attackers can access files, install malware or use the device for DDoS attacks. DMZ only temporarily and disconnect after completion of the work.

5. Open Port Verification: Tools and Diagnostics

After you set up the port port drop, you need to make sure that they are actually accessible from the Internet, and use online services or local utilities to do this.

Methods of verification:

  • ๐ŸŒ Online services: YouGetSignal checks a specific port. PortChecker supports port ranges. CanYouSeeMe is a simple interface, but can be blocked by some providers.
  • ๐Ÿ’ป Local commands: In Windows: telnet [your external_IP] [port] (if the port is open, the screen will turn black or a message from the service will appear). Linux/macOS: nc -zv [your_IP] [port].

If the port does not open, check:

  1. ๐Ÿ”„ Correctness of the rule in the router (IP, port).
  2. ๐Ÿ›ก๏ธ Firewall settings on your device (for example, Windows Defender or iptables on Linux).
  3. ๐Ÿ“ก Provider settings โ€“ some block incoming connections (especially on tariffs with โ€œgray" IP).

Critical point: if your provider uses CGNAT (For example, Beeline, Tele2, some tariffs MTS, external IP-The address will be shared by many users, and the port port rollover will not work, in which case you will need to order white" IP or use alternative solutions (e.g. Cloudflare Tunnel or Ngrok).

๐Ÿ’ก

If the port doesn't open, check first for availability from the local network (from another device). If the port is locally running and not externally, the problem is with the router or provider.

Typical errors and their solutions

Even if you set up the port overlay correctly, let's look at some of the most common problems and how to fix them.

Problem.Possible causeDecision
The port is not open, although the rule is created.Conflict with another rule or firewallDelete all the rules and create one new one. Turn off the firewall on the device temporarily.
External IP changes after router rebootDynamic IP from the providerUse a DDNS service (like No-IP) or order a static IP from your provider.
The port is open, but the connection is not working.Incorrect protocol (TCP instead of UDP or vice versa)Check which protocol your application uses and set the rule accordingly.
The router does not save settings after restartingFirmware failure or lack of memoryUpdate the firmware or make a reset to factory settings.

Another common mistake is trying to skip port 80 (HTTP) for a web server, and many providers block that port at the network level.

  • Use a different port (e.g., 8080) and set up a server-side redirect.
  • Set up a reverse proxy (for example, via Nginx or Cloudflare).

If you are using the Xiaomi Mi Router 4A in conjunction with another router (for example, from the provider), you need to configure port port port port port transfer on both devices, first on the main router (the one that is connected to the Internet), then on the Mi Router 4A.

7.Security: How to Protect Open Ports

Open ports are a potential vulnerability, and to minimize the risks, follow these guidelines:

  • ๐Ÿ”’ Use complex passwords: For SSH, RDP, FTP Passwords like 123456 or admin are hacked in seconds.
  • ๐Ÿ”„ Update: Regularly check for updates for routers and devices that have ports.
  • ๐Ÿ›ก๏ธ Restrict access to IP: In the rules of rolling some routers, you can specify which external IP Allow connections (if static).
  • ๐Ÿ” Monitor Logs: In Advanced Settings โ†’ Systemic tools โ†’ Logs can be seen attempting to connect to open ports.

For critical services (such as remote PC access), consider port port port port port port port port port alternatives:

  • ๐Ÿ”— VPN: Set up WireGuard or OpenVPN on your router โ€“ itโ€™s safer than opening it RDP directly.
  • โ˜๏ธ Cloud Tunnels: Services like Ngrok or Cloudflare Tunnel allow you to access local services without port overlay.

โš ๏ธ Warning: Never open ports for Telnet (port 23) or FTP No encryption (port 21) โ€“ these protocols transmit passwords in plain form and have long been considered insecure. SFTP (port 22) or FTPS instead.

FAQ: Answers to Frequent Questions

โ“ How to know your external IP-address?
External (public) IP can be found on sites like 2ip.ru or whatismyipaddress.com. If the address starts with 10., 172.16.-172.31. or 192.168., then you have a gray IP, and the port rollover will not work without additional settings.
โ“ Can I open ports without static? IP?
Technically, yes, but it's inconvenient: if you change IP, you'll have to update your pass rules. For home use, it's easier to reserve IP in the DHCP settings (as described in Section 2). If you're talking about an external IP (from the provider), then without a static address, you'll need a DDNS (dynamic DNS) that will automatically update your domain name when you change the IP.
โ“ Why do not torrents are distributed after the port is dropped?
Possible reasons: The torrent client does not have the same port as the router. P2P-traffic (frequent practice with mobile operators) in the client settings disabled DHT Or PeX (turn them on) Antivirus or firewall blocks outbound connections. Try temporarily disabling the firewall and checking the speed of the transfer on IKnowWhatYouDownload (don't transfer your data there!).
โ“ How to skip ports for IP-camera?
For most cameras (e.g. Xiaomi Mi Home Camera or Hikvision), you need to: Assign the camera a static IP on the network. Flip ports: 80 (HTTP) for the web interface; 554 (RTSP) for streaming video; 1935 (RTMP) if the camera is broadcasting on YouTube.

In the camera settings, specify the same ports and enable access over the local network.

It is better to use for remote viewing P2P-(a) the manufacturer's decision (if any) or VPN โ€” Open ports for cameras are often a target for hackers.

โ“ What to do if the provider blocks the ports?
If the provider is using CGNAT Or it's clearly blocking incoming connections, port-over on the router won't help: ๐Ÿ“ž Order from the provider "white" IP (pay-off). โ˜๏ธ Use cloud services: Ngrok creates a tunnel to a local port through the cloud; Cloudflare Tunnel is a free and secure option for web services; ZeroTier or Tailscale is a virtual private network (VPN). ๐Ÿ”„ Change the provider to the one that provides white" IP by default (for example, some tariffs of Rostelecom or Dom.ru).