TcpSocket.getRemoteAddress

Get the address of the connected peer.

It the socket is not connected, this function returns IpAddress.None.

class TcpSocket
const
getRemoteAddress
()

Return Value

Type: IpAddress

Address of the remote peer.

Meta