I have this code in pageload for geting Client Ip during login
if (!IsPostBack)
{
string hostName = Dns.GetHostName(); // Retrive the Name of HOST
Console.WriteLine(hostName);
string myIP = Dns.GetHostByName(hostName).AddressList[0].ToString();
lbl_hostIp.Text = myIP;
}
Note - This code is working, but display same IP Address for each Client, Please review and develope this code for me.