I'm trying to get the client's IP address of a User. My code is returning the server's (host) IP address.
string strHostName = System.Net.Dns.GetHostName()
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
string ip = addr[6].ToString();
return ip;
I need IP address of the client, not a server IP.