Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to ask one thing that the IP address which we use in URL to get data from WCF to android in URL we give IP instead of localhost which kind of that IP either of pc or android emulator
thanks in advance..........




HttpClient client;
final static String URL="http://192.168.1.6/RPersonService/PersonService.svc/personsdata";
JSONObject json;
Posted

1 solution

PC's IP.
As emulator is a virtual machine, it can't communicate with the localhost service. That's why we host the service.
Your PC becomes the server when you host the service on your machine.

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900