Home > Language Reference > Classes > StreamSocket

PeerName Property

Returns the local and remote socket names.

Syntax

Public Property Get PeerName(ByVal bRemote As Boolean) As String

ParameterDescription
bRemoteIndicates whether the property should return the local or remote socket name.

Remarks

The PeerName property returns either the local IP address if the bRemote parameter is set to False, or the remote IP address if the bRemote parameter is set to True. The returned value is a string containing a dotted decimal IP address. If the socket was not previously opened by a call to the Connect method, a runtime error occurs.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A