{"id":48002,"date":"2020-11-13T12:17:20","date_gmt":"2020-11-13T12:17:20","guid":{"rendered":"https:\/\/www.awardspace.com\/?p=48002"},"modified":"2024-02-28T11:44:10","modified_gmt":"2024-02-28T11:44:10","slug":"what-is-ftp-port","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/","title":{"rendered":"What Is an FTP Port?"},"content":{"rendered":"<p>One unique characteristic of <strong>FTP<\/strong> (File Transfer Protocol) is that it uses two ports in order to facilitate the communication between the client and the server. <strong>FTP Port 20<\/strong> is used to transfer data while <strong>FTP<\/strong> <strong>Port 21 <\/strong>is used by the server to listen for commands from the client. It\u2019s also true that transferring data over\u00a0<strong>FTP Port<\/strong>\u00a020 is not mandatory and it can be done through another port as long as this other port has been negotiated between the two parties.<\/p>\n<p>FTP has two modes of operation \u2013 active and passive. Both are started by the\u00a0<strong>FTP client<\/strong>\u00a0and then acted upon by the FTP server. Here at AwardSpace, we mainly support Passive FTP, however, we will briefly examine both modes of operation below:<\/p>\n<p>&nbsp;<\/p>\n<h2>Active FTP<\/h2>\n<p>Inactive mode the\u00a0<strong>FTP client connects<\/strong>\u00a0from a random unprivileged port (N, which is usually 20) to the FTP server\u2019s command FTP port, which is port 21. Then, the client starts listening to port N+1 and sends a command to the\u00a0FTP server. After that, the server connects back to the client\u2019s specified data port from its local one. From the server-side firewall\u2019s point of view, to support FTP in active mode these ports have to be opened: FTP server\u2019s port 21 from anywhere (Client initiates connection); FTP server\u2019s port 21 to ports &gt; 1023 (Server responds to client\u2019s control port); FTP server\u2019s port 20 to ports &gt; 1023 (Server initiates data connection to client\u2019s data port); FTP server\u2019s port 20 from ports &gt; 1023 (Client sends ACKs to server\u2019s data port).<\/p>\n<p>&nbsp;<\/p>\n<h2>Passive FTP<\/h2>\n<p>In this mode, the\u00a0FTP client\u00a0initiates two connections to the\u00a0<strong>FTP server<\/strong>. We need to keep in mind as well that both of these connections are using ephemeral ports themselves, and that\u2019s ok. By opening two connections, or sockets with the FTP server, the client is able to resolve the issue of its firewall denying access to the FTP server and initiating contact on one of the client\u2019s high ephemeral ports. One of the connections opened by the client will contact the server on <strong>FTP port<\/strong>\u00a021, and issue it the PASV (passive) command, vice the normal PORT command when using active FTP. Now what happens is that the FTP server opens an ephemeral port and issues the PORT command to the FTP client. With this in hand, the client then starts a connection back to the server\u00a0<strong>FTP port<\/strong>\u00a0for the data transfer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One unique characteristic of FTP (File Transfer Protocol) is that it uses two ports in order to facilitate the communication between the client and the server. FTP Port 20 is used to transfer data while FTP Port 21 is used by the server to listen for commands from the client. It\u2019s also true that transferring [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-48002","post","type-post","status-publish","format-standard","hentry","category-hosting-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Is an FTP Port? - AwardSpace.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is an FTP Port? - AwardSpace.com\" \/>\n<meta property=\"og:description\" content=\"One unique characteristic of FTP (File Transfer Protocol) is that it uses two ports in order to facilitate the communication between the client and the server. FTP Port 20 is used to transfer data while FTP Port 21 is used by the server to listen for commands from the client. It\u2019s also true that transferring [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-13T12:17:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-28T11:44:10+00:00\" \/>\n<meta name=\"author\" content=\"iskrend\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"iskrend\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\"},\"author\":{\"name\":\"iskrend\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\"},\"headline\":\"What Is an FTP Port?\",\"datePublished\":\"2020-11-13T12:17:20+00:00\",\"dateModified\":\"2024-02-28T11:44:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\"},\"wordCount\":414,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"articleSection\":[\"Hosting Basics\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\",\"url\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\",\"name\":\"What Is an FTP Port? - AwardSpace.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"datePublished\":\"2020-11-13T12:17:20+00:00\",\"dateModified\":\"2024-02-28T11:44:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\/\/www.awardspace.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Hosting Basics\",\"item\":\"https:\/\/www.awardspace.com\/kb\/hosting-basics\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"What Is an FTP Port?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\",\"name\":\"iskrend\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"caption\":\"iskrend\"},\"url\":\"https:\/\/www.awardspace.com\/author\/iskrend\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is an FTP Port? - AwardSpace.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/","og_locale":"en_US","og_type":"article","og_title":"What Is an FTP Port? - AwardSpace.com","og_description":"One unique characteristic of FTP (File Transfer Protocol) is that it uses two ports in order to facilitate the communication between the client and the server. FTP Port 20 is used to transfer data while FTP Port 21 is used by the server to listen for commands from the client. It\u2019s also true that transferring [&hellip;]","og_url":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2020-11-13T12:17:20+00:00","article_modified_time":"2024-02-28T11:44:10+00:00","author":"iskrend","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"iskrend","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/"},"author":{"name":"iskrend","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232"},"headline":"What Is an FTP Port?","datePublished":"2020-11-13T12:17:20+00:00","dateModified":"2024-02-28T11:44:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/"},"wordCount":414,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"articleSection":["Hosting Basics"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/","url":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/","name":"What Is an FTP Port? - AwardSpace.com","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"datePublished":"2020-11-13T12:17:20+00:00","dateModified":"2024-02-28T11:44:10+00:00","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/kb\/what-is-ftp-port\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.awardspace.com\/kb\/"},{"@type":"ListItem","position":3,"name":"Hosting Basics","item":"https:\/\/www.awardspace.com\/kb\/hosting-basics\/"},{"@type":"ListItem","position":4,"name":"What Is an FTP Port?"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232","name":"iskrend","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","caption":"iskrend"},"url":"https:\/\/www.awardspace.com\/author\/iskrend\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/48002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=48002"}],"version-history":[{"count":0,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/48002\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=48002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=48002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=48002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}