what can be the reason that ktor starts at 0.0.0.0...
# ktor
a
what can be the reason that ktor starts at 0.0.0.0:8080 and when I set it in
deployment.host
to
localhost
it only throws 400 errors? Other services like Docker work just fine on
localhost
a
Can you check that none other listens to localhost:8080?
a
Running
lsof -i :8080
shows nothing
a
Can you share the code of your server? Does a simple GET endpoint work?
a
Yes, but it is intermittent. I seriously doubt it is related to Ktor, since it is such a basic use-case. So I'll go on investigating on my computer. Thanks for you help
Okay, I keep getting the issue and I don't know why. After a fresh restart everything works. • I start the application (now at
deployment.host = localhost
and
deployment.port = 3000
and it works • I stop the application • I start it again and it it results in a 404 while it is running Inspecting with
sudo lsof -iTCP:3000 -sTCP:LISTEN -P
shows that Java is listening when I have the app running. And it goes away when I stop the app.
Okay, I was making a movie to show the issue. And I noticed that it works in different Google Chrome profiles.....
So it is definitely not a Ktor issue