How does Aspire find free ports? #7054
Answered
by
davidfowl
paulomorgado
asked this question in
Q&A
-
I need to set TCP ports on one of the projects. It's not running on Kestrel. |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Jan 13, 2025
Replies: 2 comments 5 replies
-
I could try using Kestrel, but it won't be HTTP/HTTPS. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What's the real question? What are you trying to do? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use WithEndpoint and set the env parameter. That will allocate a dynamic port and pass you the value so that you can bind to it.