How to connect to WiFi Russian Railways on a Xiaomi smartphone

Long-distance train travel often lasts many hours, and having a stable Internet connection becomes critical for many passengers.RZD provides free network access through branded hotspots, but owners of Xiaomi, Redmi and POCO smartphones often face difficulties when trying to log in.

The specifics of the MIUI or HyperOS shell have their own peculiarities of working with security protocols and redirects, which sometimes blocks the appearance of a window for entering a phone number or code from SMS. In this article, we will discuss in detail why the authorization page does not open, how to properly configure network settings and what hidden settings can interfere with the connection.

Technical features of the Russian Railways network and security protocols

The Russian Railways WiFi network works on the principle of Captive Portal, which means forcibly redirecting any browser request to the authorization page. Unlike home routers, where a password is entered once, it requires confirmation through SMS or personal account every time you sign in. Xiaomi smartphones are equipped with an aggressive system of traffic saving and data protection, which can perceive this redirection mechanism as a potential threat.

The problem is often that modern versions of Android and branded MIUI add-ons try to use the secure HTTPS connection by default. The provider's authorization page often works through an unsecured HTTP protocol, causing the browser to block the transition, considering the site unsafe. This is standard security practice, but in the case of public access points, it creates a barrier for the user.

⚠️ Note: When entering a phone number on the authorization page, make sure that the browser address bar contains a domain name belonging to Russian Railways or their partner.

In addition, telecom operators and smartphone manufacturers themselves are implementing Smart Wi-Fi functions, which analyze the quality of the signal. RZD_Free_WiFi If you have a weak signal or unstable ping, Xiaomi can automatically disconnect from it in favor of mobile Internet, interrupting the authorization process halfway.

Preparing the smartphone for connection

Before you try to log in, you need to do basic preparation of the device. Often the cause of failure is accumulated data about previous connections or conflicting DNS settings. The first step should always be to completely forget the network, if you have previously tried to connect to no avail.

To do this, go to the Settings. → Wi-Fi, find the network in the list RZD_Free_WiFi And click on the arrow or the gear icon to the right of the name. In the menu that opens, select "Delete" or "Forget Network" and this action will clear the connection cache and start the process from scratch".

☑️ Checking before connection

Done: 0 / 4

It is also critical to disable any VPN-services DNS. In Xiaomi settings it is on the Settings path → Connection and sharing → Private DNS. Make sure it has a value of "Auto" or "Disconnected." If it has an address like dns.google or 1.1.1.1, the authorization page of Russian Railways will never open, as the request will go bypass the local train network.

Step-by-step instructions: login via browser

The most reliable way to log in on Xiaomi devices is to manually call the login page after you’ve connected to the network. RZD_Free_WiFi (The status may be "Connected, no Internet access"), open any browser. It is best to use standard Chrome or built-in. MIUI Browser, as they have the fewest default ad blockers.

In the address bar, enter any site address that does not use forced encryption. HSTS. A good option is an address. http://neverssl.com plainly http://google.com (If the automatic redirect fails, try entering IP-Gateway address or special portal address, if known, but usually a request for any popular resource is sufficient.

  1. Open your browser and enter http://8.8.8.8 or http://detectportal.firefox.com in the address bar.
  2. If a page appears warning “Unsafe connection”, click “More” and then “Go to the site (not secure)”.
  3. Wait for the phone number entry form to load.
  4. Enter the number, get an SMS code and log in.

Once the code is successfully entered, the system will redirect you to the Russian Railways homepage. From now on, Internet access should be open. If the page remains white or the load indicator turns, try changing your browser. Sometimes MIUI blocks pop-ups in its browser, and switching to Opera Mini or Firefox solves the problem.

What to do if the page is white?
If you see a white screen after you enter the address, try turning the desktop version of the site into the browser menu (three dots → PC version), which will cause the authorization server to give the full version of the page, which often loads correctly than the mobile one.

Configure DNS and IP for stable operation

In some cases, the standard settings of the Xiaomi network conflict with the DHCP-server of a restaurant car or a placement car. DNS It can help Resolve requests to go through correctly. To do this, click on the Wi-Fi menu and click on the network name. RZD_Free_WiFi and select "Settings" IP".

Switch mode to C. DHCP Static. Don't change. IP-address and gateway, leave them as the system suggests. scroll down to the fields"DNS 1" and"DNS 2.” As a primary DNS Try to write 8.8.8.8 (Google) or 77.88.8.8 (Yandex) addresses, which often helps to "break through" the redirect lock.

ParameterDefault Value (DHCP)Recommended static valueCommentary
IP-addressAutomatically.Leave as is (usually 192.168.x.x)Don't change it unless you need to.
GatewayAutomatically.Leave as is (usually 192.168.1.1)Critical for getting online
DNS 1Automatically.8.8.8.8Helps with Domain Problems
DNS 2Automatically.8.8.4.4Backup server

Once you save your settings, reconnect. If the Internet doesn't come up right away, run the test page again. It's worth noting that in some regions, coverage can be unstable, and changing the DNS doesn't always guarantee 100% results, but it greatly increases the chances of success.

💡

Use the Incognito mode in your browser to log into WiFi Russian Railways. This will eliminate the influence of cache, cookies and extensions that can block authorization scripts.

Solving Security Certificate Problems

Modern Xiaomi smartphones strictly monitor the validity SSL-When you try to connect to the Russian Railways WiFi, you may see a red warning that “Your connection is not secure” or “Certificate is not valid.” This is because the WiFi provider uses a self-signed certificate to intercept traffic and redirect traffic.

It is safe to ignore this warning in this context, as you are in the process of logging in. MIUI block the transition categorically, you can try the following trick: enter in the address bar http://www.google.com/generate_204. This request is specifically designed to verify that the Captive Portal is available and often forces Android to force the authorization window open, ignoring certificate errors.

⚠️ Note: After successful authorization and the advent of the Internet, it is strongly recommended not to conduct banking operations and not enter passwords from important services on this network. VPN Encrypt traffic after WiFi is fully connected and running.

Another reason for certificate errors is that your device has a time that is down, check if you have a "over the net" time. If the date on your smartphone is 2020, for example, no modern website will open, because the certificates will be considered invalid.

Use of Wi-Fi Assistant in MIUI

In the MIUI shell, there is a smart feature that automatically switches the device between WiFi and mobile Internet depending on the signal quality. On trains where the Russian Railways WiFi signal can be weak or intermittent, this feature works against the user: the phone sees poor Internet on WiFi and instantly switches traffic to 4G, breaking the connection with the authorization portal.

To disable this behavior, go to Settings → Wi-Fi → Wi-Fi Assistant (or Wi-Fi Assistant). You need to turn off the option "Switch to mobile Internet" or "Accelerate Network." It is also useful to disable the function "Select the best network automatically" so that the phone stubbornly holds on to the train network, even if the speed temporarily drops.

📊 How often do you use WiFi on trains?
Daily/frequently
Once a month
Rarely, only in emergency cases.
I don’t use it, there is an unlimited tariff.

Disabling these features can slightly increase battery consumption, since the WiFi module will work in constant search and hold mode, without handing control to the mobile module.

Alternative methods and work through applications

If standard methods don’t work, you can try using specialized WiFi management apps, although current versions of Android have limited options, and a more effective method is using browser apps with built-in traffic compression mode, such as Opera Mini or UC Browser, which let traffic through their servers, which sometimes helps bypass local redirect locks.

There is also a cloning method. MAC-Some RZD access points can "remember" the device and not let it again if the session does not close correctly. In the WiFi settings on Xiaomi (in the advanced settings of a particular network), you can find the option "Type" MAC-Change the meaning of the address"MAC-address of the device" on "Random MAC-It's going to make the router think that a new device has connected to the network, and then it's going to offer authorization again.

⚠️ Note: Do not use third-party apps from the Play Market with names like "WiFi Hacker" or "Auto Connect" RZD". At best, they're useless, at worst, they contain malicious code that steals your data.

If nothing helps, try creating an access point from another device (like a laptop or second phone), connecting to Russian Railways WiFi through it, logging in, and then giving the internet to your main Xiaomi.This is a workaround that often saves in situations where the train's mobile client is locked or not working properly.

💡

The main problem with Xiaomi’s authorization is the conflict between HTTPS security protocol and the portal’s requirement to switch to HTTP, as well as the aggressive traffic saving in MIUI.

Frequently Asked Questions (FAQ)

Why does the page not update after entering the SMS code and write “Error”?
This is a common problem with unstable signals. Try not to close the page, but just wait 1-2 minutes. If it does not help, turn on and off the "Airplane" mode on your phone to reconnect to the cell tower (to receive SMS) and WiFi at the same time, then repeat the login.
Can I use WiFi without a SIM card on my phone?
No, the authorization in the Russian Railways network is only through confirmation of the mobile phone number. Without an active SIM card that can receive SMS, you will not be able to log in. WiFi roaming or guest access on this network is not provided.
How long is the RZD WiFi session valid?
Usually the session is valid for 45 minutes or until the moment of exit from the coverage area (for example, when a train stops at a long parking lot or switches to another car with other equipment), after the time has expired, you will need to re-enter the phone number, but the code from the SMS may no longer be requested if the device is "memorized".
Does cleaning the DNS cache of the ipconfig /flushdns command help on Android?
The ipconfig team runs on Windows. On Android, you just need to turn on and off your flight mode or reboot your smartphone to reset your DNS. On Xiaomi's engineering menu (code ##4636##), you can also find a radio module reset, but this is rarely required.
Does the RZD take money for this WiFi?
The service "RZD WiFi" is free for passengers. However, for the transmission of data via SMS channel for authorization, your mobile operator can charge the cost of one SMS message according to your tariff, if you do not have a package of free SMS. Internet traffic is charged as free.