https://kotlinlang.org logo
#ktor
Title
# ktor
a

adk

03/28/2021, 5:45 PM
It is possible to get ktor to run on a dynamically-allocated port, and then tell you what port it is running on?
c

christophsturm

03/28/2021, 8:23 PM
no.
you have 2 options, find a random port yourself and pass that (I found it impossible to get that working 100%). or if it is for tests, use a test-engine https://ktor.io/docs/testing.html
a

adk

03/28/2021, 8:36 PM
Went with option 3 - http4k 🙂