asp.net - How to get operating IP Address of the WEB instance on IIS7 -


My Vista x64 IIS7 is running on my dev machine.

I used to use the Request.ServerVariables.Get ("LOCAL_ADDR") to get the operating instance IP address of that website, though, 1902.168 Was resolved like .1.89 Vista & amp; IIS7 , I have started getting: 1 people say this is IPv6.

How do I get it in an old way? We use this to monitor the example the example is actually displaying the right content (it is difficult to change the monitoring method)

So the golden question is how do I move Can I get the local IP address of the web app?

By accidentally I find the solution it is hidden in the host file.

It was written in the host file

  127.0.0.1 localhost :: 1 localhost  

and now I have it

  127.0.0.1 works great in localhost # :: 1 localhost  

.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -