# SeaweedFSContainerResource.withHostPort

- Module: [CommunityToolkit.Aspire.Hosting.SeaweedFS](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs.md)
- Defined on: [SeaweedFSContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource.md)
- Version: `13.5.0`
- Kind: `method`

Configures the Master API host port that the SeaweedFS resource is exposed on.

## Definition

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

## Signature

```typescript
withHostPort(port: number): SeaweedFSContainerResource
```

## Parameters

- `port` (`number`)

## Returns

[SeaweedFSContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource.md) `builder`

## Defined on

- [SeaweedFSContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource.md) -- `handle`
