Hello! i created a HTTP APIs sample app from <Ktor...
# ktor
e
Hello! i created a HTTP APIs sample app from Ktor web page.. Once i finished with this tutorial, i wanna consume that api call from my mobile project! this is my endpoint http://127.0.0.1:8080/customer, the server is running! from the mobile side, which should be the endpoint to consume the api? Since the http://127.0.0.1:8080 is my localhost.. im using a physical device to test this! Thanks
s
If you are on the same network, you can just look up the IP of the machine your endpoint is running on and point your physical device at that -- so if you server's actual IP is 192.168.0.2, point your phone at http://192.168.0.2:8080/customer -- 127.0.0.1 is a loopback address so a computer can refer to itself
❤️ 1