---
title: "Locator Configuration for a Client"
url: https://docs.zeroc.com/ice/3.8/runtime/locators/locator-configuration-for-a-client
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Locator Configuration for a Client

An indirect proxy needs a [locator](https://docs.zeroc.com/ice/3.8/runtime/locators/locator-semantics-for-clients.md) to resolve its adapter ID or identity into endpoints. You give a proxy its locator by configuring a locator proxy, in one of several ways:

- by explicitly configuring an indirect proxy using the `ice_locator` proxy method
- by defining the [name.Locator](https://docs.zeroc.com/ice/3.8/property-reference/proxy-properties.md#name.locator) property of a proxy that the application creates with `propertyToProxy`
- by calling `setDefaultLocator` on a communicator, after which all new proxies use the given locator by default
- by defining the [Ice.Default.Locator](https://docs.zeroc.com/ice/3.8/property-reference/ice-default-properties.md#ice.default.locator) configuration property, which causes all proxies to use the given locator by default

To trace how the Ice runtime resolves indirect proxies, set the following properties:

```config
Ice.Trace.Protocol=1
Ice.Trace.Locator=2
```

See [Ice.Trace.\*](https://docs.zeroc.com/ice/3.8/property-reference/ice-trace-properties.md) for more information on these properties.

## See Also

- [Locator Semantics for Clients](https://docs.zeroc.com/ice/3.8/runtime/locators/locator-semantics-for-clients.md)
- [Ice.Default.\*](https://docs.zeroc.com/ice/3.8/property-reference/ice-default-properties.md)
- [Proxy Properties](https://docs.zeroc.com/ice/3.8/property-reference/proxy-properties.md)
- [Ice.Trace.\*](https://docs.zeroc.com/ice/3.8/property-reference/ice-trace-properties.md)
