Nitish Kumar Mishra

Nitish Kumar Mishra

  • 1.7k
  • 240
  • 514

Client System IP address

Jul 9 2019 6:12 AM
In my project i am trying to fetch and save user sytem IP address 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;

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)