Consider a client application with a combobox of available Zyan servers.
The application can populate the combobox from the configuration file.
But it would be much greater to show all available nearby servers automatically.
UDP-based discovery protocol should make it possible.
```C#
// server-side
zyanHost.EnableDiscovery = true;
// client-side
var availableServers = await ZyanConnection.Discover("Sample*"); // name mask
foreach (var server in availableServers)
{
Console.WriteLine("ZyanHost name: {0}", server.Name);
Console.WriteLine("Server url: {0}", server.Url);
Console.WriteLine("Client protocol: {0}", server.ClientProtocol);
}
```
The application can populate the combobox from the configuration file.
But it would be much greater to show all available nearby servers automatically.
UDP-based discovery protocol should make it possible.
```C#
// server-side
zyanHost.EnableDiscovery = true;
// client-side
var availableServers = await ZyanConnection.Discover("Sample*"); // name mask
foreach (var server in availableServers)
{
Console.WriteLine("ZyanHost name: {0}", server.Name);
Console.WriteLine("Server url: {0}", server.Url);
Console.WriteLine("Client protocol: {0}", server.ClientProtocol);
}
```