The server should bind to all addresses #199
quixoticaxis
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Is this intended? Yes, until there's a clear use case to justify the complexity, since I couldn't think of a real-world production use case for binding multiple ports. What's the use case in which you'd need to bind multiple hosts or ports? Explain to me why you need that? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I was playing around with multiple servers inside a single process and found out a strange behavior: the server binds only to one IP address. For example,
with_host("localhost").with_port(7878)
used to run two servers in separate threads manages to start two instances of the server on my machine, one server is bound to IPv4 127.0.0.1, while the other is bound to IPv6 ::1. Is it intended?Coming from .Net where Kestrel (ASP.Net web server) is binding to all addresses, I find the current behavior non-intuitive and wonder how the end-user of Trillium may handle it.
Beta Was this translation helpful? Give feedback.
All reactions