Click here to Skip to main content
15,881,826 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to connect the local host(IIS). How do it?
Posted
Comments
Kornfeld Eliyahu Peter 9-Dec-14 12:31pm    
Use the name of the hosting machine, like http://my-home-computer/i-want-to-visit-this-site...
Dominic Burford 10-Dec-14 0:26am    
You use the emulators to test your app on multiple devices, As such there should be no difference between running your code on a physical device as against an emulator. It's probably a good idea to create test web service for testing your app rather than using localhost, It can still be a locally installed web service running from your LAN. This will be a better test than using localhost.

However if you really do want to use localhost then simply reference it by it's machine name e.g. http://mymachine/mywebservice

Network Address		Description
10.0.2.1			Router/gateway address
10.0.2.2			Special alias to your host loopback interface (i.e., 127.0.0.1 on your development machine)
10.0.2.3			First DNS server
10.0.2.4 / 10.0.2.5 / 10.0.2.6	Optional second, third and fourth DNS server (if any)
10.0.2.15			The emulated device's own network/ethernet interface
127.0.0.1			The emulated device's own loopback interface
 
Share this answer
 
User this http://10.0.2.2/[^] ip address to connect or load localhost pages in mobile.
 
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