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

martin.petrulak

10/04/2019, 9:25 AM
Hello, iam starting with K-Tor , i have build a few endpoints that i can access from browser on my machine, from emulator browser via
<http://10.0.2.2:8080/>....
, but when iam trying to get the data from android app via
client.call("<http://10.0.2.2:8080/....>")
i get
java.net.ConnectException: Failed to connect to localhost/127.0.0.1:80
any ideas what might be wrong?
👀 1
e

e5l

10/04/2019, 9:31 AM
Hi @martin.petrulak, could you create an issue?
I can't reproduce it with my sample
s

Steve Young

10/04/2019, 9:12 PM
@martin.petrulak is the emulator using any proxy? Try to restart computer. What is your httpClient’s setting like?
m

martin.petrulak

10/08/2019, 11:21 AM
Hey folks, i figured it myself, my url was wrong, all good now. Now i have to sort ourt other 100 things 😉
s

Steve Young

10/08/2019, 3:43 PM
😀
7 Views