mardi 12 septembre 2017

ASP.NET Web API call from android

I am calling ASP.NET web API in android(Java). I have deployed web API on localhost and using localhost URL in API call.

I'm getting connection refused error. I've tried the following:

  • Called API using local host URL.
  • Called API using 10.0.2.2 IP.
  • Called API with my IP address.
  • Called API using 127.7.0.0

Kindly suggest what should be done in this scenario.

P.s: I've tested on both emulator and android device. Everything is on same network. Still I get the same error.




Aucun commentaire:

Enregistrer un commentaire