Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- Router problem, or DHCP turned off on the router
- A saved network entry that no longer matches
- Third-party security software on the phone
- A fault in the phone's Wi-Fi hardware
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If the phone cannot connect to any network while other devices can, back up and try a factory reset; if that does not help, take it to a Xiaomi authorised service centre for a Wi-Fi hardware check.
Differences between versions
Resetting network settings removes saved Wi-Fi passwords and Bluetooth pairings. Before a factory reset, make sure you know the Mi Account and Google passwords on the phone.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.