Wednesday, April 16, 2008

How do we get ipaddress or hostaddress using c#

How do we get ipaddress or hostaddress using c#

HttpContext.Current.Server.MachineName

HttpContext.Current.Request.ServerVariables["local_addr"]