Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have .net website which I am able to access via 10.0.2.2 via android emulator but I am not able to access it via android phone. Kindly help please
Posted

1 solution

In android programming http://10.0.2.2 is the address of localhost. But it is used to communicate via port number 80. You should check the port number of running .net application. It may be some 6099, etc... So you should use the port number also. Like this: http://10.0.2.2:6099

Hope your problem is solved now... :)
 
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