I have a problem to get the user's ip address into web server. I am using this code..
//To get the local IP address
string sHostName = Dns.GetHostName();
IPHostEntry ipE = Dns.GetHostByName(sHostName);
IPAddress[] IpA = ipE.AddressList;
for (int i = 0; i < IpA.Length; i++)
{
Console.WriteLine("IP Address {0}: {1} ", i, IpA[i].ToString());
string IPAddress= IpA[i].ToString();//ip;// IPAddress;// strIPAddress;
}
due to this I am getting user IP address into local host accurate but when I upload my website into web server than it's having all user's ip address same as server IP address... please guys help me.