1

how can I get the ip address of the IIS box where an asp.net application is running on? I tried:

 HttpContext.Current.Request.ServerVariables["SERVER_NAME"];

Is this at all possible?

Chris Schmich
  • 28,454
  • 5
  • 73
  • 94
user603007
  • 10,986
  • 36
  • 101
  • 166
  • Check if this [link](http://stackoverflow.com/questions/646525/getting-the-ip-address-of-server-in-asp-net) helps. – Nilesh Aug 05 '13 at 01:43

1 Answers1

0

Here are all the variables:

HttpContext.Current.Request.UserHostAddress; should work

Link 1

Prahalad Gaggar
  • 10,932
  • 16
  • 49
  • 68
Peter Kellner
  • 13,491
  • 23
  • 89
  • 166