klyn.net.Socket.remoteSocketAddress
property
public readonly property remoteSocketAddress as SocketAddress
Description

Returns the remote socket endpoint when known.

Returns

The actual connected peer address, also for accepted sockets, or null before a connection is established.

Throws
  • SocketException if the operating system cannot query the peer.
Example

print(client.remoteSocketAddress)