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.

asked 13 Oct '11, 02:48

asherber's gravatar image

asherber
172
accept rate: 0%


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?

link

answered 13 Oct '11, 14:44

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

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

(13 Oct '11, 15:58) asherber
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×141

Asked: 13 Oct '11, 02:48

Seen: 202 times

Last updated: 13 Oct '11, 15:58