> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Determining console location

> Call GetUserDefaultGeoName in your GDK title to retrieve the XBOX console country and region at runtime, independent of the package manifest locale.

To retrieve the country the console is set to — independent of the package manifest — use [`GetUserDefaultGeoName`](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultgeoname). "User" here refers to the signed-in session; the API returns the country the console is set to.

<Note>
  `GetUserDefaultGeoName` is useful when the locale returned by `GetUserDefaultLocaleName` is `en-GB`. Several countries use the UK English locale for simplification (Saudi Arabia, UAE, Czech Republic, Hungary, Slovakia, Greece) — the geo name tells them apart.
</Note>

## See also

* [GetUserDefaultGeoName](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultgeoname)
* [GetUserDefaultLocaleName](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultlocalename)

## Related API documentation

* [XGameRuntime features reference](/reference/system/xgameruntimefeature/xgameruntimefeature_members) — `XSystemGetXboxLiveSandboxId`, region-aware runtime APIs
* [XUser API reference](/reference/system/xuser/xuser_members) — signed-in-user country/region queries


## Related topics

- [Determining console locale and language](/build/game-principles/localization/determining-console-locale.md)
- [Wrapper sample](/services/playfab/multiplayer/servers/wrapper-sample.md)
- [XPackageGetUserLocale](/reference/system/xpackage/functions/xpackagegetuserlocale.md)
- [Determining required DLLs for Windows game servers](/services/playfab/multiplayer/servers/determining-required-dlls.md)
- [XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)
