PeerAddress Property  
 

Return the IP address of the remote peer.

Syntax

object.PeerAddress

Remarks

The PeerAddress property returns the IP address of the remote system that the local host is connected to. If a datagram socket is being used, this property will return the address of the system which sent the last datagram that was read. If no connection has been established, this property will return 255.255.255.255.

If this property is read inside an OnAccept event handler, it will return the IP address of the client that is requesting the connection. The application may use this information to determine if it wishes to accept or reject the client connection. If the IP address information is not available for the client at that time, this property will return the address 0.0.0.0.

Data Type

String

See Also

HostAddress Property, LocalAddress Property, PeerName Property, PeerPort Property