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
| Parameter | Description |
| bRemote | Indicates 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
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |