Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have one url--->"localhost:81/example.svc/add this is working fine in browser if use ip address of system instead of local host it showing invalid host name.example--->191.XXX.X.X/example.svc/add. How can i get same response if i use both urls
Posted

1 solution

Your localhost is used to refer to your computer from its “internal” IP, not from any “external” IPs of your computer.
You have to use IPaddress when WCF service is hosted on external servers not in your Machine.
If your WCF service is in local machine use localhost not your local ip
 
Share this answer
 
Comments
mekalareddy 13-Mar-14 1:14am    
then how can i use that url in android to get response

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