Skip to content

Instantly share code, notes, and snippets.

@shibajee
Created August 27, 2020 06:15
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save shibajee/4861767bc10fde9328ed59b817bcc521 to your computer and use it in GitHub Desktop.
Save shibajee/4861767bc10fde9328ed59b817bcc521 to your computer and use it in GitHub Desktop.
Change region of Xiaomi routers to unlock all channel:
1. Login to ur router in browser.
2. Open a new tab and paste this
http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN
get the stok value from login tab and replace it in new tab and then hit enter.
3. Router will reboot automatically and on next login u will see all 5Ghz channel 36~48 and 149~165.
**u can also go with country=HK or country=TW (hongkong or taiwan)
@dtoledano
Copy link

not working anymore.
I got a message :

{"msg":"操作失败","code":1606}

@edgarv09
Copy link

http:///cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/cgi-bin/luci/;stok=xxxxxxxxxf/api/xqsystem/country_code

to get all the valid contry code supported by your router

@tiborh
Copy link

tiborh commented Sep 8, 2021

It seems the global version has a limited country set. China is not included.
e.g.
{"current":"","list":[{"name":"South Korea","code":"KR"},{"name":"Singapore","code":"SG"},{"name":"Malaysia","code":"MY"},{"name":"France","code":"FR"},{"name":"Germany","code":"DE"},{"name":"Italy","code":"IT"},{"name":"Spain","code":"ES"},{"name":"Indonesia","code":"ID"},{"name":"Thailand","code":"TH"},{"name":"Vietnam","code":"VN"},{"name":"Brazil","code":"BR"},{"name":"Russia","code":"RU"},{"name":"Turkey","code":"TR"},{"name":"阿拉伯联合酋长国(迪拜)","code":"AE"},{"name":"Australia","code":"AU"},{"name":"Belgium","code":"BE"},{"name":"Switzerland","code":"CH"},{"name":"Chile","code":"CL"},{"name":"Denmark","code":"DK"},{"name":"Egypt","code":"EG"},{"name":"Finland","code":"FI"},{"name":"Ireland","code":"IE"},{"name":"Israel","code":"IL"},{"name":"Morocco","code":"MA"},{"name":"Nigeria","code":"NG"},{"name":"Netherlands","code":"NL"},{"name":"Norway","code":"NO"},{"name":"Peru","code":"PE"},{"name":"Poland","code":"PL"},{"name":"Sweden","code":"SE"},{"name":"Ukraine","code":"UA"},{"name":"United Kingdom","code":"GB"},{"name":"New Zealand","code":"NZ"},{"name":"Portugal","code":"PT"},{"name":"Kenya","code":"KE"},{"name":"Bulgaria","code":"BG"},{"name":"Columbia","code":"CO"},{"name":"Czech Republic","code":"CZ"},{"name":"Estonia","code":"EE"},{"name":"Greece","code":"GR"},{"name":"Croatia","code":"HR"},{"name":"Hungary","code":"HU"},{"name":"Jordan","code":"JO"},{"name":"Cambodia","code":"KH"},{"name":"Lithuania","code":"LT"},{"name":"Latvia","code":"LV"},{"name":"Malta","code":"MT"},{"name":"Romania","code":"RO"},{"name":"Slovakia","code":"SK"},{"name":"Laos","code":"LA"}],"code":0}

@Regaladfr
Copy link

Regaladfr commented Sep 13, 2021

http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN

don t work anymore to change country code

error : {"msg":"操作失败","code":1606}

@tiborh
Copy link

tiborh commented Sep 13, 2021

yes, best:

  1. check if the code you would like to select is available at all (not every firmware supports every language)
  2. as a backup method, reset the router (first, save your configs)

@Regaladfr
Copy link

I have try everythings nothing work 🥲.

@misqkrk
Copy link

misqkrk commented Oct 5, 2021

it works. Thanks

@linhdh
Copy link

linhdh commented Jan 24, 2022

I have a Xiaomi AX3200 and this guide works for mine.

@ymys
Copy link

ymys commented Apr 18, 2022

Is there any new way? On my AX3000 resulting this:
{"msg":"Couldn't complete this action","code":1606}

@ymys
Copy link

ymys commented Apr 18, 2022

Cant find CN/TW/HK, here is my country_code in my router AX3000:
{
"current": "FR",
"list": [
{
"name": "South Korea",
"code": "KR"
},
{
"name": "Singapore",
"code": "SG"
},
{
"name": "Malaysia",
"code": "MY"
},
{
"name": "France",
"code": "FR"
},
{
"name": "Germany",
"code": "DE"
},
{
"name": "Italy",
"code": "IT"
},
{
"name": "Spain",
"code": "ES"
},
{
"name": "Indonesia",
"code": "ID"
},
{
"name": "Thailand",
"code": "TH"
},
{
"name": "Vietnam",
"code": "VN"
},
{
"name": "Brazil",
"code": "BR"
},
{
"name": "Russia",
"code": "RU"
},
{
"name": "Turkey",
"code": "TR"
},
{
"name": "阿拉伯联合酋长国(迪拜)",
"code": "AE"
},
{
"name": "Australia",
"code": "AU"
},
{
"name": "Belgium",
"code": "BE"
},
{
"name": "Switzerland",
"code": "CH"
},
{
"name": "Chile",
"code": "CL"
},
{
"name": "Denmark",
"code": "DK"
},
{
"name": "Egypt",
"code": "EG"
},
{
"name": "Finland",
"code": "FI"
},
{
"name": "Ireland",
"code": "IE"
},
{
"name": "Israel",
"code": "IL"
},
{
"name": "Morocco",
"code": "MA"
},
{
"name": "Nigeria",
"code": "NG"
},
{
"name": "Netherlands",
"code": "NL"
},
{
"name": "Norway",
"code": "NO"
},
{
"name": "Peru",
"code": "PE"
},
{
"name": "Poland",
"code": "PL"
},
{
"name": "Sweden",
"code": "SE"
},
{
"name": "Ukraine",
"code": "UA"
},
{
"name": "United Kingdom",
"code": "GB"
},
{
"name": "New Zealand",
"code": "NZ"
},
{
"name": "Portugal",
"code": "PT"
},
{
"name": "Kenya",
"code": "KE"
},
{
"name": "Bulgaria",
"code": "BG"
},
{
"name": "Columbia",
"code": "CO"
},
{
"name": "Czech Republic",
"code": "CZ"
},
{
"name": "Estonia",
"code": "EE"
},
{
"name": "Greece",
"code": "GR"
},
{
"name": "Croatia",
"code": "HR"
},
{
"name": "Hungary",
"code": "HU"
},
{
"name": "Jordan",
"code": "JO"
},
{
"name": "Cambodia",
"code": "KH"
},
{
"name": "Lithuania",
"code": "LT"
},
{
"name": "Latvia",
"code": "LV"
},
{
"name": "Malta",
"code": "MT"
},
{
"name": "Romania",
"code": "RO"
},
{
"name": "Slovakia",
"code": "SK"
},
{
"name": "Laos",
"code": "LA"
}
],
"code": 0
}

@rajabertie
Copy link

Any way to set India in the region? or which region can be used for optimal performance in India?

@rubyonrails3
Copy link

Is there any new way? On my AX3000 resulting this: {"msg":"Couldn't complete this action","code":1606}

I am also looking for a way to enable 149 and above channels on my AX3000

I tried changing region but that didn't help. I can't return the router, I am out of returning period.

My iPhone 14 Pro Max, my wife iPhone 13 Pro Max can't see 5Ghz SSID.
also my Samsung S23 Ultra and Z Fold4 can't see 5Ghz
Only my Pixel 7 Pro connects to 5Ghz and connection speed is around 2400 Mbps( link speed)

@OffS3c
Copy link

OffS3c commented Jul 18, 2023

Anyone with unlocked firmware? AX3000 Global. 5GHz is giving me headaches or anyone know how to downgrade?

@rubyonrails3
Copy link

Anyone with unlocked firmware? AX3000 Global. 5GHz is giving me headaches or anyone know how to downgrade?

I regret buying this router, mostly because it has very limited number of channels, my last 2 routers were from TP-Link and they had all the channels but on AX3000 Global I see 36, 40, 44, 48 channels, but my iPhone, Xiaomi 13 Ultra, S23 Ultra or even Honor Magic 5 Pro can't connect to those channels. only phone that connects to that channel is Pixel phones (7 Pro and 8 Pro) but Pixel 4 XL also can't find that.

@luargil
Copy link

luargil commented Apr 22, 2024

Anyone with unlocked firmware? AX3000 Global. 5GHz is giving me headaches or anyone know how to downgrade?

I regret buying this router, mostly because it has very limited number of channels, my last 2 routers were from TP-Link and they had all the channels but on AX3000 Global I see 36, 40, 44, 48 channels, but my iPhone, Xiaomi 13 Ultra, S23 Ultra or even Honor Magic 5 Pro can't connect to those channels. only phone that connects to that channel is Pixel phones (7 Pro and 8 Pro) but Pixel 4 XL also can't find that.

Hello, were you able to find a solution for this? There are ways to change the region but in no case does it unlock the rest of the channels

@rubyonrails3
Copy link

Anyone with unlocked firmware? AX3000 Global. 5GHz is giving me headaches or anyone know how to downgrade?

I regret buying this router, mostly because it has very limited number of channels, my last 2 routers were from TP-Link and they had all the channels but on AX3000 Global I see 36, 40, 44, 48 channels, but my iPhone, Xiaomi 13 Ultra, S23 Ultra or even Honor Magic 5 Pro can't connect to those channels. only phone that connects to that channel is Pixel phones (7 Pro and 8 Pro) but Pixel 4 XL also can't find that.

Hello, were you able to find a solution for this? There are ways to change the region but in no case does it unlock the rest of the channels

Not really, turned out new routers can't change channels based on region settings.

I bought a different router now from Netgear Nighthawk AXE300 now I have almost each and every band and I don't have to switch regions (actually I can't as region is set to US)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment