{"id":1519,"date":"2010-11-06T19:06:46","date_gmt":"2010-11-06T17:06:46","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=1519"},"modified":"2012-06-03T15:31:57","modified_gmt":"2012-06-03T13:31:57","slug":"default-ports-for-ftp","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/default-ports-for-ftp","title":{"rendered":"Default ports for FTP"},"content":{"rendered":"<p>By default <strong>FTP uses port 21 <\/strong>for control channel:<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\/\/ C# version\r\n\r\nusing (Ftp client = new Ftp())\r\n{\r\n    client.Connect(&quot;ftp.example.org&quot;);\r\n\r\n    \/\/...\r\n\r\n    client.Close();\r\n}\r\n<\/pre>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n' VB.NET version\r\n\r\nUsing client As New Ftp()\r\n\tclient.Connect(&quot;ftp.example.org&quot;)\r\n\r\n\t'...\r\n\r\n\tclient.Close()\r\nEnd Using\r\n<\/pre>\n<p>By default <strong>FTPS uses port 990<\/strong> for control channel:<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\/\/ C# version\r\n\r\nusing (Ftp client = new Ftp())\r\n{\r\n    client.ConnectSSL(&quot;ftp.example.org&quot;);\r\n\r\n    \/\/...\r\n\r\n    client.Close();\r\n}\r\n<\/pre>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n' VB.NET version\r\n\r\nUsing client As New Ftp()\r\n\tclient.ConnectSSL(&quot;ftp.example.org&quot;)\r\n\r\n\t'...\r\n\r\n\tclient.Close()\r\nEnd Using\r\n<\/pre>\n<p>If your FTP or FTPS server is running on <strong>different port<\/strong> just use overladed version of <em>Connect <\/em>and <em>ConnectSSL<\/em>:<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\/\/ C# version\r\n\r\nclient.Connect(&quot;ftp.example.org&quot;, 999);\r\nclient.ConnectSSL(&quot;ftp.example.org&quot;, 999);\r\n<\/pre>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n' VB.NET version\r\n\r\nclient.Connect(&quot;ftp.example.org&quot;, 999)\r\nclient.ConnectSSL(&quot;ftp.example.org&quot;, 999)\r\n<\/pre>\n<p>You can <a href=\"\/ftp\">download Ftp.dll FTP\/FTPS library for .NET here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default FTP uses port 21 for control channel: \/\/ C# version using (Ftp client = new Ftp()) { client.Connect(&quot;ftp.example.org&quot;); \/\/&#8230; client.Close(); } &#8216; VB.NET version Using client As New Ftp() client.Connect(&quot;ftp.example.org&quot;) &#8216;&#8230; client.Close() End Using By default FTPS uses port 990 for control channel: \/\/ C# version using (Ftp client = new Ftp()) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[15,22,80,24,57],"class_list":["post-1519","post","type-post","status-publish","format-standard","hentry","category-ftp-dll","tag-c","tag-ftp","tag-ftp-component","tag-ftps","tag-vb-net"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1519"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=1519"}],"version-history":[{"count":4,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1519\/revisions"}],"predecessor-version":[{"id":3077,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1519\/revisions\/3077"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}