VPN on a Xiaomi router
MiWiFi works with PPTP and L2TP, while VanyaVPN offers routers PPTP and OpenVPN. So you’ll be connecting over PPTP, the less secure of the two. The TV and set-top box on this network use the VPN too, with nothing to install on them.
You can start with the trial: 3 days for $0.50
Setting up MiWiFi
-
Open the router’s panel
Open 192.168.31.1 or miwifi.com and log in with the password you chose at first launch. The screenshots come from a Xiaomi 3C. On other models with this firmware, the Mi Router 4C included, find the same VPN icon under the Advanced tab.
-
Add a PPTP service
On the Advanced tab, click the “VPN” icon, then “Add service”. Set “Protocol type” to PPTP, paste the address of the server you want into “Server”, and fill in “Username” and “Password” with your router login details from the account. Save with the blue button.
The Advanced tab and the VPN icon. The service list and the Add service button open below the icons. -
Connect
Press “Connect” in the new service’s row. A few seconds later the status reads “Connected” and the button turns into “Disconnect”.
-
Turn on auto-connect
At the bottom, switch on “Connect automatically when the device is on”. Without it, after a reboot or a power cut the router goes online directly until you press “Connect” again.
The service is connected, and the auto-connect switch at the bottom is on.
Smart TV and set-top box
A VPN on a Xiaomi router covers everything connected to it, over Wi-Fi or cable. The TV and the box just need the home network. That’s handy for Samsung and LG sets and for Apple TV, which VanyaVPN has no app for.
If the box runs Android TV, a Xiaomi Mi Box for instance, you can skip the router and install the app on the box itself, following the Android TV guide. Then only the box uses the VPN, while everything else at home stays as it was.

Questions
Can a Xiaomi router do OpenVPN?
Stock MiWiFi firmware has no OpenVPN client, only PPTP and L2TP. VanyaVPN doesn’t offer L2TP for routers, so that leaves one option.
The status never gets to Connected
Check the server address and login details, it’s safer to copy them from your account than to retype. If they’re right, your provider may be blocking PPTP, as Beeline, a large Russian provider, has done before. MiWiFi has no second protocol to fall back on, so the next step is the app on the devices themselves.
I have a Xiaomi mesh system. Where do I set it up?
On the main node, the one plugged into your provider’s cable, if its menu has a VPN section. The other nodes just extend its network, so their devices go through that connection too.
One subscription for the whole home
There’s no separate fee for the router. Away from home, your phones connect through the app on the same subscription.
- 2 years +6 months free $1.90/mo $57 for the whole term
- Year +3 months free $2.80/mo $42 for the whole term
- 6 months +2 months free $3.50/mo $28 for the whole term
- Month No bonus months $5/mo
The “Vanechka” trial
3 days with every country for $0.50, once per account. After that it continues month to month, and you can turn renewal off in your account.
If it does not work for you, we refund the payment under our refund policy.