https://kotlinlang.org logo
Title
a

Ananiya

11/20/2020, 8:24 AM
hello there, i just make an app using this library which is based in ktor but i am not able to find the default port even searching around for
embeddedServer(Netty, port = "ITS PORT")
or is there any system command to find which port the app is running in ? i also packed it as jar file if it could be easy to get the port
a

asad.awadia

11/20/2020, 3:01 PM
did you try the default ktor port?
a

Ananiya

11/20/2020, 3:59 PM
@asad.awadia I never thought that, I will give a try. Maybe it would work Thanks
m

Marc Knaup

11/20/2020, 4:09 PM
What do you mean by “the app is running in”? There is no app. That’s merely a client library 🤔
a

Ananiya

11/20/2020, 4:15 PM
the app do asynchronous POST and GET to discord server to start the bot in the machine that currently running on
m

Marc Knaup

11/20/2020, 4:16 PM
What app?
a

Ananiya

11/20/2020, 4:16 PM
The code where you design the bot
m

Marc Knaup

11/20/2020, 4:17 PM
Even then - the bot is merely a client. There is no server and hence no server port 🤔
a

Ananiya

11/20/2020, 4:21 PM
I got confused b/c the kord start running as ktor app
m

Marc Knaup

11/20/2020, 4:21 PM
There’s Ktor client and Ktor server. The bot API merely uses a Ktor client to provide a Discord bot.
a

Ananiya

11/20/2020, 4:23 PM
Ah, so it's a client that's why I couldn't find the port 🤔
m

Marc Knaup

11/20/2020, 4:23 PM
yup