Nitish Kumar Mishra

Nitish Kumar Mishra

  • 1.7k
  • 183
  • 319

Client System IP address

Jul 9 2019 6:12 AM
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
 

Answers (2)