API
KestrelServerOptions.Listen
Binds a server endpoint to an IP address and port.
Formal Syntax & Structure
csharp syntaxcsharp
options.Listen(IPAddress.Loopback, 0)Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.options.Listen(IPAddress.Loopback, 0)