



URLs can be in any of the following formats.Ġ.0.0.0 is a special case that binds to all IPv4 addresses. The port can be omitted if it's the default for the protocol (typically 80 and 443). The URLs indicate the IP or host addresses with ports and protocols the server should listen on. The following sections explain how to configure endpoints using the: Configure endpoints in appsettings.json.There are several options for configuring endpoints: Usually, this is a TCP address and port number. When an endpoint is created, it must be configured with the address it will listen to. Kestrel endpoints listen to incoming data. If there's no endpoint configuration, then Kestrel binds to Configure endpoints The launchSetting.json file is only used in local development. This default configuration is specified in the generated Properties/launchSettings.json file and can be overridden. This article discusses how to use each option to configure an endpoint:ĪSP.NET Core projects are configured to bind to a random HTTP port between 5000-5300 and a random HTTPS port between 7000-7300. The protocol defines the communication standard between the client and server, such as whether the endpoint is secured with HTTPS, and the HTTP version.Įndpoints can be configured using URLs, JSON in appsettings.json, and code.The address specifies the network interface that the server listens on for incoming requests, such as a TCP port.The combination of an address and a protocol defines an endpoint. Kestrel endpoints provide the infrastructure for listening to incoming requests and routing them to the appropriate middleware.
