# EnvironmentData

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EnvironmentData/

Describes the device the client runs on. All fields are optional.

- **Full name:** `MFiles.EnvironmentData`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-client_name"></a>`client_name` | `string` | 1 | A name for the client device, such as its host name. Shown as the session's computer name. Must not start with `@{`. |
| <a id="f-timezone"></a>`timezone` | [`TimeZoneInformation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TimeZoneInformation/index.md) | 2 | The client device's time zone. Leave unset if unknown. |
| <a id="f-host_platform"></a>`host_platform` | `string` | 3 | Free-form description of the platform, for example `Windows 11` or `Python 3.13`. |
| <a id="f-device_token"></a>`device_token` | `string` | 4 | A stable, globally unique identifier of the device. Used by M-Files clients that register devices; see [DisconnectDevice](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/DisconnectDevice/index.md). |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCLogin.LogIn](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/LogIn/index.md): Authenticates the caller and opens a session to a vault, or to the server when the vault GUID is all zeros.
- [IRPCLogin.LogInRemote](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/LogInRemote/index.md): Logs in (with authentication) to a remote server.
- [IRPCLogin.Relogin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/Relogin/index.md): Logs in again by using the current session ID. Used by M-Files' own clients.

<a id="used-in-fields"></a>

## Used in fields

- [`LogInRemoteRequest.environment_data`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/LogInRemote/index.md#request): Description of the client environment.
- [`ReloginRequest.environment_data`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/Relogin/index.md#request): Describes the client device, as in `LogIn`.
- [`LogInRequest.environment_data`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/LogIn/index.md#request): Describes the client device. Optional; `client_name` is shown as the session's computer name.
