Skip to content

How to get the bound port if port is set to 0? #299

Answered by davidism
johan-bjareholt asked this question in Q&A
Discussion options

You must be logged in to vote

Werkzeug's own tests use https://pypi.org/project/ephemeral-port-reserve/ to reserve a port to then listen on.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@johan-bjareholt
Comment options

@johan-bjareholt
Comment options

Answer selected by johan-bjareholt
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