{"id":210473,"date":"2025-04-30T11:56:27","date_gmt":"2025-04-30T11:56:27","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=210473"},"modified":"2025-04-30T11:56:29","modified_gmt":"2025-04-30T11:56:29","slug":"in-ftp-the-client-starts-the-control-connection-and-the-server-starts-the-data-transfer-connection","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2025\/04\/30\/in-ftp-the-client-starts-the-control-connection-and-the-server-starts-the-data-transfer-connection\/","title":{"rendered":"In FTP, the client starts the control connection, and the server starts the data transfer connection."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In FTP, the client starts the control connection, and the server starts the data transfer connection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7bdcb5\" class=\"has-inline-color\">The Correct Answer and Explanation is:<\/mark><\/strong><\/p>\n\n\n\n<h6 class=\"wp-block-heading\">ChatGPT said:<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Correct Answer: False<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In <strong>File Transfer Protocol (FTP)<\/strong>, <strong>both the control connection and the data connection are initiated by the client<\/strong>, not the server. Understanding this requires examining how FTP works in both <strong>active<\/strong> and <strong>passive<\/strong> modes:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Control Connection (Always Client-Initiated)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>FTP control connection<\/strong> is established first and remains open throughout the session.<\/li>\n\n\n\n<li>The <strong>client initiates<\/strong> this connection to the <strong>FTP server&#8217;s port 21<\/strong>.<\/li>\n\n\n\n<li>This connection is used to send commands (like <code>LIST<\/code>, <code>RETR<\/code>, <code>STOR<\/code>) and receive responses from the server.<\/li>\n\n\n\n<li>It is persistent, meaning it stays open for the duration of the FTP session.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Data Connection (Depends on FTP Mode)<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Active Mode (PORT Command):<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>client sends a PORT command<\/strong> over the control connection, telling the server which IP and port to use for data transfer.<\/li>\n\n\n\n<li>Then, the <strong>server initiates<\/strong> the data connection from its port 20 to the client\u2019s specified port.<\/li>\n\n\n\n<li>Therefore, in active mode, the <strong>server starts the data connection<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Passive Mode (PASV Command):<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The client sends a <strong>PASV command<\/strong>, and the <strong>server responds<\/strong> with an IP address and port number for data transfer.<\/li>\n\n\n\n<li>The <strong>client then initiates<\/strong> the data connection to the server&#8217;s specified port.<\/li>\n\n\n\n<li>In this mode, <strong>both connections are initiated by the client<\/strong>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Summary:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>control connection<\/strong> is <strong>always<\/strong> initiated by the client.<\/li>\n\n\n\n<li>The <strong>data connection<\/strong> is:\n<ul class=\"wp-block-list\">\n<li><strong>Initiated by the server<\/strong> in <strong>active mode<\/strong>.<\/li>\n\n\n\n<li><strong>Initiated by the client<\/strong> in <strong>passive mode<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So the statement, <em>&#8220;the client starts the control connection, and the server starts the data transfer connection&#8221;<\/em> is <strong>partially true for active mode<\/strong>, but <strong>not universally true<\/strong>\u2014especially <strong>not in passive mode<\/strong>, which is more commonly used today due to firewall and NAT compatibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thus, the correct overall answer is <strong>False<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In FTP, the client starts the control connection, and the server starts the data transfer connection. The Correct Answer and Explanation is: ChatGPT said: Correct Answer: False Explanation: In File Transfer Protocol (FTP), both the control connection and the data connection are initiated by the client, not the server. Understanding this requires examining how FTP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-210473","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/210473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=210473"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/210473\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=210473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=210473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=210473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}