Web Server IP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a simple way to obtain the IIS Server IP address (not the clients
using) with C# in ASP.NET? Our web servers are simple with only one IP. In
Classic ASP there was a one liner that would give it to you in a string
format.....
 
Is there a simple way to obtain the IIS Server IP address (not the clients
using) with C# in ASP.NET? Our web servers are simple with only one IP.
In
Classic ASP there was a one liner that would give it to you in a string
format.....

HttpContext.Current.Request.ServerVariables["LOCAL_ADDR"].ToString();
 
Back
Top