Livecode Wiki
Register
Advertisement

Returns the domain name corresponding to an IP address.Syntax:

hostAddressToName(<IPAddress>)

Examples:

hostAddressToName("127.0.0.1")
answer "Connecting to" && hostAddressToName(newAddress) & "..."

Use the hostAddressToName function to find the domain name of the computer at a IP address.

The hostAddressToName function does a reverse DNS lookup on the IP address in order to find the domain name. This means that the computer must be connected to the Internet in order to use this function. If a connection to the Internet is not available, the hostAddressToName function returns an error message.

Parameters:

  • IPAddress: A numeric IP address.
  • Returns: The hostAddressToName function returns the domain namecorresponding to the IPAddress.

See also: peerAddress (function),hostAddress (function),

Advertisement