Hello. At the moment I am developing a mobile version of the site on ASP.NET. Until a certain point, it was quite logical and convenient to use mobile platform emulators, but then it was time to watch how the site behaves on “live” devices.
I want to share with you a little advice on how to test and debug (!) Websites on ASP.NET without installing IIS, but using the built-in Visual Studio ASP.NET Development Server.
Those who have already developed ASP.NET sites know that ASP.NET Dev Server is a local web server that allows you to test and debug sites from the development environment. It looks like this - we are accessing localhost on the port on which the Dev Server is
htt://localhost:50170/Account/Logon
Logically, if there is a need to test a site from a local network (LAN, Wi-Fi), we can easily access the site as follows, replacing localhost with the computer’s ip on the network
htt://192.168.1.2:50170/Account/Logon
When I tested the site from under the emulator, I did. However, when it came to viewing from the device, the browser sadly complained that the page could not be accessed.
As it turned out, the problem is in the ASP.NET Dev Server itself - due to security reasons, the server does not support external issues, while emulators are considered local processes, so the Dev Server was available for them.
The solution is quite simple and elementary - it is necessary to “forward ports” - redirect requests from the outside from one port to the port that the local server listens to.
There are quite a few programs that can help with this, I use the Trace Utility utility from the Microsoft Soap Toolkit 3.0 package. You can download it
from here (note, only for Windows XP).
If you chose Soap Toolkit Trace Utility, keep in mind that during the installation you have enough and you need to install only Debugging Utilities, the rest of the package components are not needed.
After setup, you will be able to access the Development Server from the network using the “dummy” port:
htt://192.168.1.2:8080/Account/Logon
original article:
Accessing the Visual Studio ASP.NET Development Server from iPhone