# Sandbox.Networking.SetData

```csharp
static void SetData(string key, string value)
```

Set data about the current server or lobby. Other players can query this
when searching for a game. Note: for now, try to keep the key and value as short
as possible, Steam enforce a character limit on server tags, so it could be possible
to reach that limit when running a Dedicated Server. In the future we'll store this
stuff on our backend, so that won't be a problem.

### Parameters

- `key` (`string`)
- `value` (`string`)

Declared in [Sandbox.Networking](/api/Sandbox.Networking).
Assembly: `Sandbox.Engine`.
