View ASP.net development server from a virtual machine

Microsoft recommends testing older versions of IE with the following virtual machines

All this is fine and good, except that virtual machines cannot see Dev Server from Visual Studio. This makes development or debugging difficult, as I have to copy or deploy to IIS for every small change I make. I tried using ARR, but it seems that it can only forward one specific port at a time, while I need the port typed in the address bar of the virtual machine to match the port to which it connects on the host machine. Is it possible?

+3
source share
5 answers

You do not need to deploy to IIS to check for changes.

We installed our IIS on development machines to point to the web project folder.

Once IIS is configured, you can add an existing website to your solution, select Local IIS and select a site from the list of sites (instead of browsing the file system and selecting a .csproj file). Now you will have your own site in VS, which is hosted by IIS, ready for modification and debugging and accessible from remote computers.

+2
source

In general, you cannot access the ASP.NET development server on one machine from another.

Here are some additional notes on what you cannot do with ASP.NET Development Server from MSDN

  • ASP.NET Development Server - ASP.NET ( , -). , ASP.NET . . , , . ASP.NET , IIS.
  • ASP.NET IIS. , ASP.NET SMTP. - , IIS SMPT , ASP.NET , .

.....

Google. , - . ,

Squid Windows ( -)

StackOverflow, , .

- ASP.NET?

+1

, IIS .

. 2 3 (, IE8, FireFox) - ( ). , IIS, .

, . , , MS , ( FireFox Opera, Mac OS) - .

0

, Squid.

, , .

  • CNET SPI
    • ( : " " , " ". " ", CNET , . .)
  • " " , , . , 80.
  • " ", "localhost" (, -, ).
  • " " - ( ASP.NET Development Server 2485).
  • ""

, .

0

, , . Fiddler!

1.

Fiddler.

Fiddler , .

- > Fiddler- > Connection- > " ":

enter image description here

Fiddler.

2.

Internet explorer- > Internet Options- > Connection Tab- > Lan Settings- > Check " - ":

enter image description here

  • IP- DEV.
  • 8888

Now you can access the ASP.NET web server from your virtual machine!

To access it → http://localhost.//4814

  • Do not forget about the extra point after "localhost"!
  • The port "54814" in my case is the port of the ASP.NET web server.
0
source

Source: https://habr.com/ru/post/1776354/


All Articles