I want to know the IP address of the client machine, i.e. the IP address of the user who is browsing my website. I am trying the following code but it is returning server ad
string IPAddress = string.Empty; string SearchName = string.Empty; String strHostName = HttpContext.Current.Request.UserHostAddress.ToString(); IPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();