Can't retrieve server name in SFTP/FTP?

0 votes
asked Oct 13, 2011 by asherber (330 points)
edited Oct 13, 2011

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
answered Oct 13, 2011 by Lukas Pokorny (124,570 points)
edited Oct 13, 2011
 
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?

commented Oct 13, 2011 by asherber (330 points)
edited Oct 13, 2011

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

...