How To Solve The Error `java.net.connectexception: Failed To Connect To Localhost/127.0.0.1:8000`
I'm currently developing an application using android-studio with Kotlin and an API system using django-rest-framework. I want to access my local server 127.0.0.1 with an android e
Solution 1:
Try open cmd and then write ipconfig
on it
after that you got your local ip address then try to put on your code
for example you got 192.168.1.2 from your cmd then put it to your code like this:
HitAPITask().execute("http://192.168.1.2/api/name/")
Post a Comment for "How To Solve The Error `java.net.connectexception: Failed To Connect To Localhost/127.0.0.1:8000`"