ClientHost Property  
 

Return the hostname for the current client session.

Syntax

object.ClientHost

Remarks

The ClientHost property returns the hostname of the current client session which has established a connection with the server. This property value is only meaningful when accessed within an event handler, such as the OnConnect event.

Accessing this property causes the control to perform a blocking reverse DNS lookup, attempting to match the client Internet address with a hostname. Not all addresses have a reverse DNS record, in which case this property will return an empty string. It is recommended that most applications use the value of the ClientAddress property rather than use the ClientHost property to distinguish between client connections.

Data Type

String

See Also

ClientAddress Property, ClientPort Property, ServerAddress Property, OnAccept Event, OnConnect Event