> Documentation index: https://firebase.google.com/docs/reference/emulator-suite/rules-unit-testing/llms.txt

An object containing the hostname and port number of an emulator.

**Signature:**

```typescript
export interface HostAndPort 
```

## Properties

| Property | Type | Description |
|---|---|---|
| [host](https://firebase.google.com/docs/reference/emulator-suite/rules-unit-testing/rules-unit-testing.hostandport.md.txt#hostandporthost) | string | The host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details. |
| [port](https://firebase.google.com/docs/reference/emulator-suite/rules-unit-testing/rules-unit-testing.hostandport.md.txt#hostandportport) | number | The port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details. |

## HostAndPort.host

The host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details.

**Signature:**

```typescript
host: string;
```

## HostAndPort.port

The port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details.

**Signature:**

```typescript
port: number;
```