0 votes
by (330 points)
edited

It appears that the private _serverName field is not surfaced in these components. Is this intentional? I'd like to be able to find out from the component what server it's connected to. (RemoteEndPoint seems to give only the resolved IP, not the server name.)

Thanks, Aaron.

Applies to: Rebex FTP/SSL, Rebex SFTP

1 Answer

0 votes
by (144k points)
edited
 
Best answer

Both Ftp and Sftp classes inherit from NetworkSession class, which has a ServerName property and this has been there since July 2010. Are you sure you use the latest version of SFTP/FTP?

by (330 points)
edited

Apologies, you're absolutely right. I was looking in the wrong place.

...