KnownHostNames Fields
Class Fields 3 members
Provides known host names for use within the Aspire application model API.
The host name used to facilitate connections originating from containers and ending on the host network.
public const static string DefaultContainerTunnelHostName The host name used by Docker Desktop host network bridge.
public const static string DockerDesktopHostBridge The host name associated with the IP loopback interface (localhost).
public const static string LocalhostRemarks
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.