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
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