Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface OpenWebUIResource {
// ... omitted for brevity
withHostPort(port: number): OpenWebUIResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): OpenWebUIResource
portnumber
OpenWebUIResource

Applies to

This method applies to the following types: