How to connect Xiaomi router to the Internet via computer: 3 working ways

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:

  1. 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.
  2. 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).
πŸ“Š What type of connection does your provider use?
PPPoE (login/password)
DHCP (Automatic IP)
Static IP
I don't know.
ScriptWhen to useRequired settings on the PC
Router as a clientSet up a router through a working connectionEnable the distribution of the Internet, assign a static IP to the router subnet (for example, 192.168.31.2)
Router as a gatewayStandard connection to the providerAutomatic IP Receiving (DHCP) or Manual Network Card Configuration
Console setupIf the web interface is not availableTelnet 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.

  1. Open Control Panel β†’ Network Control Center β†’ Change the Adapter settings.
  2. Right-click on the Ethernet connection, select Properties.
  3. Select IP version 4 (TCP/IPv4) and press Properties.
  4. 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.1

If 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:

  1. Select mode: Specify Router (if Xiaomi will distribute the Internet) or Repiter (if it will expand the existing network).
  2. 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”?
If the router indicators flash randomly or the web interface is no longer available, reset to factory settings: 1. Press and hold the Reset button (on the back) for 10-15 seconds. 2. Release the button when the power indicator starts flashing quickly yellow. 3. Connect to the router again and reconfigure. The cause of failure is often incorrect data entry PPPoE or conflict. IP-address.

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 causeDecision
Router not responding to 192.168.31.1Wrong. IP-PC addressCheck the network card settings or reset the router
WAN indicator flashes orangeNo 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 accessNot configured DNS or lock on the provider sideManually write DNS 8.8.8.8 and 8.8.4.4 in the WAN settings
The page miwifi.com is not openBlocking the browser or conflict with VPNTurn 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:

  1. Connect the router to the computer according to the scheme from section 2.
  2. On the phone, turn on modem modem (USB-tetering and plug it into the PC.
  3. 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:

  1. Hold the Reset button for 5 seconds until the indicator starts flashing yellow.
  2. Connect to the router via Telnet (port 23): telnet 192.168.31.1
  3. 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.

FAQ: Frequent questions

Can you connect a Xiaomi router to the Internet without a computer?
Yes, use the Mi Wi-Fi mobile app to do this. Connect to the router's Wi-Fi network (network name and password are on the sticker) and follow the instructions in the app. You can also use another router in bridge mode.
Why does the router not save the Wi-Fi password after setting up?
This is a known problem on some firmware. Solutions: Update your firmware to the latest version. Reset your router to factory settings and reconfigure it. Use a password that is no longer than 20 characters long (no Cyrillic or special characters).
How to connect Xiaomi router to the Internet through USB-modem?
Xiaomi routers do not support direct connection USB-Alternatives: Connect the modem to your computer and distribute the Internet to the router via Ethernet (as described in section 2). NDIS (emulation of the network card and connect it to WAN-port via USB-Ethernet adapter.
What to do if the provider uses a binding MAC-address?
In this case, you need to clone. MAC-Address of the old device: Find out MAC-address of the previous router or PC network card (ipconfig command) /all In the Xiaomi web interface, go to Advanced Settings. β†’ MAC Clone, enter the copied MAC-Address and save settings. Reset the router.
Can I use the Xiaomi router as a switch?
Yes, for this: Turn it off. DHCP-server LAN (DHCP β†’ Connect the cable from the main router to any LAN-port WAN!) Xiaomi. Set up static rentals on the main router IP for MAC-Xiaomi addresses. In this mode, Wi-Fi and additional Xiaomi features will not work.