Skip to content
DocsTry Aspire
DocsTry

KnownHostNames Fields

ClassFields3 members
Provides known host names for use within the Aspire application model API.
DefaultContainerTunnelHostNameSection titled DefaultContainerTunnelHostNamestaticconststring
The host name used to facilitate connections originating from containers and ending on the host network.
public const static string DefaultContainerTunnelHostName
DockerDesktopHostBridgeSection titled DockerDesktopHostBridgestaticconststring
The host name used by Docker Desktop host network bridge.
public const static string DockerDesktopHostBridge
LocalhostSection titled Localhoststaticconststring
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.