In my project i am trying to fetch and save user sytem IP address ..it is working in local .
but when i am deploying it on server on every login it is saving server ip address instide of client local system address..
below are the code
string ipadd = "";
string strHostName = "";
strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
thanks


Amit MohantyRank #112 · 20K reputationPosted Jul 9, 2019, 3:56 AM EDT
ajay sharmaRank #5,191 · 308 reputationPosted Jul 9, 2019, 8:35 PM EDT
public static string[] GetIP()