hostAddressToName

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the hostAddressToName of <IPAddress>
hostAddressToName(<IPAddress>)
Summary

Returns the domain name corresponding to an IP address.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
IPAddress

A numeric IP address.

Example
hostAddressToName("127.0.0.1")
answer "Connecting to" && hostAddressToName(newAddress) & "..."
Values
NameTypeDescription
return

The hostAddressToName function returns the domain name corresponding to the IPAddress.

RelatedCommand: accept
Function: peerAddress, hostAddress
Control Structure: function
Glossary: domain name, IP address, return, DNS
Description

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.

Tagsnetworking