Connecting a Xiaomi router via a computer is a task that users face when they do not have access to Wi-Fi or when they need to configure the network from scratch. Unlike standard settings via the Mi Wi-Fi mobile app, PC connectivity requires knowledge of network protocols, proper configuration. IP-This guide covers everything from choosing a cable to diagnosing a problem when the router "can't see" the Internet.
We will discuss three main scenarios: direct connection to the provider via a computer (when the router is used as a bridge), configuration via a web interface with pre-distribution of the Internet from a PC, and an alternative method through a console for advanced users. We will pay special attention to typical errors, for example, when the router receives a message. IP-address, but traffic doesn't pass, or when Xiaomi refuses to save settings.All steps tested on Mi Router models 4A/4C/AX3000/AX6000 latest-everything.
1. What will be required to connect
Before you start, check for the mandatory components, without which the configuration is impossible or will result in an error.
- π Ethernet network cable (Cat) 5e Any patch cord up to 5 meters long will do. Avoid cheap Chinese cables without shielding, which can cause batch losses.
- π» Computer with Ethernet port. RJ-45 need USB-Adapter (recommended by TP-Link) UE300 or ASIX AX88179).
- π‘ Xiaomi router with power supply.Make sure the power indicator is white or orange - this means that the device is on and ready to set up.
- π Data from the provider: connection type (PPPoE, DHCP, static IP), login, VLAN-ID (Without this data, the router will not be able to log in.
Also prepare a backup method of connecting to the Internet (for example, a mobile phone with a mobile phone). USB-It's useful if you have to download drivers for a network card or update the firmware of the router.
π‘
If your provider uses a link to MAC-Please specify in advance if you need to clone. MAC-The address of the old device in the router settings is available in the Advanced Settings menu. β MAC Clone
Connection Scheme: How to connect router and computer
There are two options for physical connectivity and the choice depends on your goal:
- Router as client (getting Internet from a PC): a computer distributes the Internet to a router, suitable if you already have a working connection (for example, through a computer). USB-Modem) and you want to configure Xiaomi as a repeater or second router.
- The router is like a gateway: the computer connects to a router that receives the Internet itself from the provider. Standard scenario for a home network.
Let us consider both options in detail.
Option 1: The computer distributes the Internet to the router
- π Connect the port. WAN Xiaomi router with Ethernet port of the computer.
- π₯οΈ On PC, enable Internet distribution via a network bridge or team in PowerShell: netsh interface bridge add name="Bridge" interface="Ethernet"Wi-Fi" (replace Wi-Fi in the name of your primary connection).
- βοΈ Set up on the router. WAN-port DHCP (automatic IP).
Option 2: The router gives the Internet to the computer
- π Connect the provider cable to the port WAN Xiaomi router.
- π» Put anyone in. LAN-router port with computer Ethernet port.
- β‘ Turn on the router. Wait for the indicator. WAN It will start to flash (meaning the device is trying to get a sniffle). IP provider).
| Script | When to use | Required settings on the PC |
|---|---|---|
| Router as a client | Set up a router through a working connection | Enable the distribution of the Internet, assign a static IP to the router subnet (for example, 192.168.31.2) |
| Router as a gateway | Standard connection to the provider | Automatic IP Receiving (DHCP) or Manual Network Card Configuration |
| Console setup | If the web interface is not available | Telnet or SSH utility, knowledge of CLI commands |
3. Set up a network connection on a computer
If you connect Xiaomi router directly to your PC (without a provider), you need to manually configure it. IP-This will allow you to access the router's web interface at 192.168.31.1.
- Open Control Panel β Network Control Center β Change the Adapter settings.
- Right-click on the Ethernet connection, select Properties.
- Select IP version 4 (TCP/IPv4) and press Properties.
- Set the following parameters: IP-Address: 192.168.31.2 Subnet Mask: 255.255.255.0 Main gateway: 192.168.31.1 DNS-server: 192.168.31.1 or 8.8.8.8
After applying the settings, check the connection with the router command:
ping 192.168.31.1If the ping passes (no packet losses), you can proceed to configure the router through the web interface.
The cable is connected to the correct port (WAN/LAN)|
The router's power indicator is on white |
PC network card configured to static IP 192.168.31.2|
Ping to 192.168.31.1 passes without loss-->
β οΈ Note: If after the change IP-address on the PC disappears the Internet, return the settings of the network card to the automatic receipt mode IP After you have completed your router setup, otherwise you will be left without access to the network.
4. Web interface login and basic setting
The web interface of Xiaomi routers is available at http://192.168.31.1 or http://miwifi.com. After the first connection, the system will prompt you to create an account or log in via Mi Account. If you do not have an account, select the option of Setting up without an account (not available on all firmware).
The main steps of setting up:
- Select mode: Specify Router (if Xiaomi will distribute the Internet) or Repiter (if it will expand the existing network).
- Type WAN-connection: π DHCP β If the provider automatically appoints IP. π PPPoE β if you need a login/password (check with the provider). π Static IP β if the provider has issued fixed addresses.
Setting up Wi-Fi
SSID
802.11ac/ax
Once you set the settings, the router will restart, and wait until the WAN light turns blue, which means that the Internet is successfully connected.
What if after saving the settings, the router βhangsβ?
5. Common mistakes and their solutions
Even with the right connection, there can be problems, and here are the most common ones and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Router not responding to 192.168.31.1 | Wrong. IP-PC address | Check the network card settings or reset the router |
| WAN indicator flashes orange | No communication with the provider (incorrect PPPoE data or cable break) | Check the cable, reconnect it, check the connection data from the provider. |
| Wi-Fi is working, but there is no internet access | Not configured DNS or lock on the provider side | Manually write DNS 8.8.8.8 and 8.8.4.4 in the WAN settings |
| The page miwifi.com is not open | Blocking the browser or conflict with VPN | Turn off VPN/proxy, try another browser (e.g. Edge) |
If the router receives IP-address from the provider (this is visible in the status) WAN), The pages are not open, the problem may be MTU. Try to change this value in the settings WAN 1472 or 1400.
β οΈ Note: On some Xiaomi models (e.g, AX6000) After updating the firmware, the configuration option without Mi Account may disappear. In this case, create an account on account.xiaomi.com and use it to log in.
6. Alternative ways of setting up
If the web interface is not available or the router does not respond to standard methods, try one of the alternative options:
Method 1: Configure via the Mi Wi-Fi mobile application
Even if you donβt have Wi-Fi access, you can connect to the router via cable and use the app on your smartphone:
- Connect the router to the computer according to the scheme from section 2.
- On the phone, turn on modem modem (USB-tetering and plug it into the PC.
- Run Mi Wi-Fi, the application will automatically find the router on the local network.
Method 2: Console configuration via Telnet/SSH
For advanced users, command line mode is available, activated as follows:
- Hold the Reset button for 5 seconds until the indicator starts flashing yellow.
- Connect to the router via Telnet (port 23): telnet 192.168.31.1
- Enter the commands to set up (example for PPPoE): nvram set wan_proto=pppoe nvram set wan_pppoe_username="your login nvram set wan_pppoe_passwd="Your password is nvram commit reboot
π‘
The console method is only suitable for power users. Incorrect commands can lead to the router "bricking" and then you need to flash it over UART.
7. Network optimization after connection
After a successful connection, it is recommended to follow several steps to improve stability and speed:
- π Update your firmware: Go to Advanced Settings β System Status β Firmware Update. Install the latest version of the software.
- πΆ Configure Wi-Fi channels: in the Wi-Fi Settings menu, select channels 1/6/11 for 2.4 GHz and 36β48 for 5 GHz to avoid interference.
- π Enable Protection: Activate Firewall and DoS Protection in the Security section.
- π Set up QoS: If you have many devices, prioritize traffic for videos (YouTube, Netflix) or games in Bandwidth Control.
For models with Mesh support (such as the Xiaomi AX3600), you can combine multiple routers into a single network. Go to Mesh Network and follow the instructions of the configuration wizard.