string ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
string strHostName = System.Net.Dns.GetHostName(); string strIp = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)