Replies: 1 comment 2 replies
-
Kestrel uses the same trick internally to bind to port 0 when you give it just an IP, or anything except localhost. That doesn't work for localhost because it's actually two bindings for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the requirements of dynamically binding the same open port to both the IPv4 and IPv6 loopback address.
Our solution currently is demonstrated in the following blog.
The problem with this is that once it finds the open port, we have to close the connection/socket before passing the port number to Kestrel.
I know that currently binding to localhost will port bind both the IPv4 and IPv6 addresses but is there a reason why dynamic port binding is not available here?
Beta Was this translation helpful? Give feedback.
All reactions