The method listed below returns the IP associated with
a specific host name passed by a parameter.
public string getHost(string ip)
{
IPHostEntry IpEntry = Dns.GetHostByAddress(ip);
return iphostentry.HostName.ToString();
}
The method listed below returns the IP associated with
a specific host name passed by a parameter.
public string getHost(string ip)
{
IPHostEntry IpEntry = Dns.GetHostByAddress(ip);
return iphostentry.HostName.ToString();
}