Monday, March 09, 2015

How to enable remote access to IIS Express web sites

When developing web services with windows phone applications and using the emulator, Visual Studio provides a rich and integrated development environment.  However, once you move to a physical device, such as a windows phone 8.1 device, for additional testing, you might run into an issue with the device accessing the web service within the IDE.

While you could configure IIS to expose the site you would not have an integrated debugging environment.  However, IIS Express can be configured to expose the IDE website to remote (external) devices.

1.  Turn off or configure windows firewall to allow access to the selected website project port.  You can locate this in the projects properties under web.


2.  Navigate to the IIS Express applicationhost.config file. (%HOMEPATH%\Documents\IISExpress\config\applicationhost.config)

3. Find the website you working with (search for the configured port) and add the highlighted line changing localhost to the local ip address that the remote device will use to access the web site.


4.  Make sure that you run Visual Studio as an administrator.


technode said...

Nice,thanks for sharing ,presented well,keep updating morebest institute for redhat linux in chennai|best institute for rhce in chennai|red hat certification in chennai|rhcsa training in chennai|red hat linux course fees|rhce certification in chennai|ccna training in chennai

johnsy sai said...

I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
excel advanced excel training in bangalore
Devops Training in Chennai