Gets the name of the peer device participating in the communication.
This finds the name of the device to which the client is connection,
an exception will occur if the socket is not connected.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
If the remote device is not found in the discovery cache.
|
| InvalidOperationException |
The socket is not connected.
|