Property RemoteEndPoint
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
RemoteEndPoint
The address and port of the server, as the TCP connection sees it, when the connection runs over a socket: a TCP connection
SshSharp made (with ConnectAsync(string, int, SshClientOptions, CancellationToken), or by ssh_config alias
without a jump host or proxy command), or a NetworkStream passed to
ConnectAsync(Stream, SshClientOptions, bool, CancellationToken). Through an HTTP or SOCKS proxy it is the proxy's
address. Null over any other stream (a ProxyJump tunnel, a ProxyCommand, a pipe). Read once, when the connection is made. An IPv4
address is given as such, not in the IPv4-mapped IPv6 form (::ffff:192.0.2.1) a dual-mode socket reports.
public EndPoint? RemoteEndPoint { get; }