Internet Direct (Indy) Version 9.0.1 Beta
TIdStack.ResolveHost
Convert a host name into an IP address.

function ResolveHost(const AHost: string): string;
Parameters
const AHost: string
Host name to convert.

Returns
String - IP address for the host name.

Description
ResolveHost is a String function that returns the IP address for a given host name specified by the AHost parameter. For example, if AHost is set to "wvnvm.wvnet.edu", the function will return "129.71.2.4". If AHost was set to 129.71.2.4", this function returns "129.71.2.4".