Skip to content
Docs Try Aspire

KnownHostNames Fields

Class Fields 3 members
Provides known host names for use within the Aspire application model API.
DefaultContainerTunnelHostName Section titled DefaultContainerTunnelHostName staticconst string
The host name used to facilitate connections originating from containers and ending on the host network.
public const static string DefaultContainerTunnelHostName
DockerDesktopHostBridge Section titled DockerDesktopHostBridge staticconst string
The host name used by Docker Desktop host network bridge.
public const static string DockerDesktopHostBridge
Localhost Section titled Localhost staticconst string
The host name associated with the IP loopback interface (localhost).
public const static string Localhost
In general, "localhost" resolves to multiple addresses. E.g. in dual-stack systems (IPv4 and IPv6, very common) "localhost" resolves at least to 127.0.0.1 and [::1]. On some systems there are multiple IPv4 networks associated with loopback interface and the number of potential addresses for "localhost" increases accordingly.