# withHostPort

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.

## Definition

```typescript
interface OpenWebUIResource {
  // ... omitted for brevity
  withHostPort(port: number): OpenWebUIResource
}
```

## Parameters

- `port` (`number`)

## Returns

[OpenWebUIResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/openwebuiresource.md) `builder`

## Applies to

- [OpenWebUIResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/openwebuiresource.md)
