> 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/setsocketconfig.md).

# SetSocketConfig

```csharp
SocketBuilder SetSocketConfig(SocketConfig config)
```

* **Description:**\
  This method sets the socket configuration for the builder. It allows you to define the IP address, port number, and server capacity for the socket server/client connection.
* **Parameters:**
  * `config` (`SocketConfig`): A configuration object that holds the socket settings, including the IP address, port number, and the maximum number of clients the server can handle.
* **Returns:**\
  `SocketBuilder`: Returns the `SocketBuilder` instance itself, enabling method chaining for further configuration.
