I have written a web service locally using Python flask framework, which is localhost: 5000
To run this web service successfully from my computer browser by typing I http: // localhost: 5000 / toi / something
I use the same service from my Android browser I am trying to call the device by connecting it with the device I am doing this for the first time so I am so Not that I'm such works or I do something wrong but it is not showing the output on my Android device. Once this happens, I will call a web service programmed in my Android application.
Thank you
I do not think it's If you've got a phone connected to the same WiFi network compared to your computer, then you should access it in this way:
http: // ipofyourcomputer: 5000 / toi / something /
After doing this work you can try it with some of the libraries available on Android:
OKHTP -
android- Async-http -
Volley -
Or if you are using the REST service, you can use it:
The Trofait -
Hope this helps.
Comments
Post a Comment