Given a server address and port number, how do I determine if I need to use an SSL FTPS connection or a standard non-encrypted FTP connection?

asked 11 Jul '11, 19:16

John%20Hancock's gravatar image

John Hancock
251
accept rate: 0%


If the port number is 990, use implicit SSL (FtpSecurity.Implicit). If the port number is 21, it's more complicated - it's either non-encrypted connection or it's secured using explicit SSL (FtpSecurity.Explicit). If unsure, establish a non-encrypted connection first and try to enable explicit SSL later by calling Ftp object's Secure method (if it throwns an FtpException, it means that explicit SSL is not possible, but you can still continue using the connection in standard non-encrypted mode.

(Finally, if the port number is 22, you need to use Rebex SFTP instead of Rebex FTP/SSL.)

link

answered 12 Jul '11, 12:32

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

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
×14
×12
×10

Asked: 11 Jul '11, 19:16

Seen: 280 times

Last updated: 12 Jul '11, 12:32