Request.ServerVariables("LOCAL_ADDR")
would provide the server's IP address, too.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Joseph Byrns" <jo*********@nnoossppaamm-yahoo.com> wrote in message
news:eJ**************@TK2MSFTNGP15.phx.gbl...
You can do:
System.Net.Dns.GetHostByName(System.Net.Dns.GetHos tName()).AddressList(0).ToString
"Carlo Marchesoni" <Ca*************@discussions.microsoft.com> wrote in
message news:B7**********************************@microsof t.com...I looked in the help but I cannot find the method to retrieve the
IP-Address
of the local machine in the code behind (not the client machine, wich I
can
retrieve with Request.UserHostAddress, but the IP-Address of the server
where
the code behind is running).
I checked IPAddress Class but this seems not to be the correct one.
Thank you for your help