Tuesday, June 9, 2015

Get IP address of Client machine in C#.net

Descriptions.
It is very easy to get client machine IP address in C#.You can find IP easly.

//From Above string we get host name.
  string hostName_New = Dns.GetHostName(); 



  // Get the IP Address in below string
  string IP = Dns.GetHostByName(hostName).AddressList[0].ToString();

No comments:

Post a Comment