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

Pacane

04/06/2020, 12:42 PM
Hi, is there a way to bind to a dynamic port with ktor instead of a fixed port?
👍🏻 2
e

e5l

04/06/2020, 3:15 PM
Hi @Pacane, could you try
0
as port? 🙂
p

Pacane

04/06/2020, 3:16 PM
It returns this in the console
2020-04-06 111558.775 [Thread-3] INFO Application - Responding at http://localhost:0
so I guess it doesn't work?
e

e5l

04/06/2020, 3:17 PM
Could you tell me what is your OS version?
p

Pacane

04/06/2020, 3:17 PM
Copy code
`ooo/                  OS: Arch Linux x86_64 
                `+oooo:                 Kernel: 5.5.13-arch2-1
2 Views