Home > Language Reference > Classes > StreamSocket
GetHostByAddr Function
Looks up a host name given its IP address.
Syntax
Public Function GetHostByAddr(ByRef sAddr As String) As String
| Parameter | Description |
| sAddr | Dotted decimal IP address to be resolved. |
Remarks
The GetHostByAddr looks up a host name given its IP address. The address should be specified in the sAddr parameter as a string containing a dotted decimal IP address. If the lookup is successful, the host name is returned. If the IP address could not be resolved within the delay specified by the Timeout property, or if the lookup is unsuccessful, an empty string is returned.
This function can be used even if the socket was not previously opened by a call to the Connect.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |