Skip to content

How does Aspire find free ports? #7054

Answered by davidfowl
paulomorgado asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@paulomorgado
Comment options

@davidfowl
Comment options

@paulomorgado
Comment options

@davidfowl
Comment options

Answer selected by paulomorgado
@paulomorgado
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants