> For the complete documentation index, see [llms.txt](https://tariksavas.gitbook.io/tarnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tariksavas.gitbook.io/tarnet/docs/how-to-use/socketbuilder/setclientvalidationconfig.md).

# SetClientValidationConfig

```csharp
SocketBuilder SetClientValidationConfig(ClientValidationConfig config)
```

* **Description:**\
  This method sets the client validation configuration for the builder. It allows you to define the authentication key and specify IP whitelists and blacklists for server-client communication.
* **Parameters:**
  * `config` (`ClientValidationConfig`): A configuration object that contains the authentication key and lists of allowed and denied IP addresses for client validation.
* **Returns:**\
  `SocketBuilder`: Returns the `SocketBuilder` instance, enabling method chaining.
