Document dynamic port binding limitations (#26611)

Co-authored-by: Stephen Halter <halter73@gmail.com>
pull/26618/head
James Newton-King 2022-08-03 16:20:47 +08:00 committed by GitHub
parent ac1b868558
commit c735b07259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,11 @@ When the port number `0` is specified, Kestrel dynamically binds to an available
:::code language="csharp" source="samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_IServerAddressesFeature":::
Dynamically binding a port isn't available in some situations:
* `ListenLocalhost`
* Binding TCP-based HTTP/1.1 or HTTP/2, and QUIC-based HTTP/3 together.
## Limitations
Configure endpoints with the following approaches: