PeerName Property  
 

Return the name of the remote peer.

Syntax

object.PeerName

Remarks

The PeerName property returns the name of the remote system that the local host is connected to. If a datagram socket is being used, this property will return the name of the system which sent the last datagram that was read.

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 PeerAddress property rather than use the PeerName property to distinguish between connections from a remote host.

Data Type

String

See Also

HostName Property, LocalName Property, PeerAddress Property, PeerPort Property