> For the complete documentation index, see [llms.txt](https://docs.coherence.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherence.io/0.4.14/api-reference/cloud-api/server-discovery.md).

# Server discovery

Here is a sample script showing how you can use the server discovery API to get the servers associated with your runtime key.

```csharp
// Initialize network API
Network.Init(RuntimeSettings.instance.playToken);

// Get the list of servers associated with the token
var network = World.DefaultGameObjectInjectionWorld.GetExistingSystem<NetworkSystem>();
if (network.ConnectionAddresses != null)
{
    foreach (var connection in network.ConnectionAddresses)
    {
        serverDropdown.options.Add(new Dropdown.OptionData
        {
            text = string.Format("{0} {1}:{2}", connection.region, connection.ip, connection.port)
        });
    }
    serverDropdown.value = serverDropdown.options.Count - 1;
}
```
