{"id":14768,"date":"2026-10-26T08:50:27","date_gmt":"2026-10-26T07:50:27","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=14768"},"modified":"2026-10-26T08:50:33","modified_gmt":"2026-10-26T07:50:33","slug":"ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/","title":{"rendered":"FTP Active Mode vs Passive Mode: Which Connection Type Should You Use?"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">FTP active mode and passive mode determine how FTP creates its separate connections for commands and file data. This is why an FTP client can log in successfully but still fail when it tries to show a directory or transfer a file. The usual cause is that the control connection works, while the second data connection is blocked by a firewall, router, NAT device, or server setting. FTP is a network protocol for transferring files between a client and a server, including website files on a remote server. <a href=\"https:\/\/mybox.com\/help\/knowledgebase\/protocols-ftp\/\">Learn more about FTP<\/a>.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#What_is_the_difference_between_active_and_passive_FTP\" >What is the difference between active and passive FTP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#How_active_FTP_works\" >How active FTP works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#How_passive_FTP_works\" >How passive FTP works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#Why_firewalls_and_routers_affect_FTP_mode\" >Why firewalls and routers affect FTP mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#Which_FTP_mode_should_you_use\" >Which FTP mode should you use?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#How_to_test_the_correct_mode\" >How to test the correct mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ftp-active-mode-vs-passive-mode-which-connection-type-should-you-use\/#What_the_result_tells_you\" >What the result tells you<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_the_difference_between_active_and_passive_FTP\"><\/span>What is the difference between active and passive FTP?<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">The difference is the direction of the FTP data connection.<\/p><figure class=\"wp-block-table\"><table>\n<thead><tr><th>Mode<\/th><th>Who opens the data connection?<\/th><th>Typical network effect<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Active FTP<\/td><td>The server connects back to the FTP client.<\/td><td>The client&#8217;s firewall or router may block the incoming connection.<\/td><\/tr>\n<tr><td>Passive FTP<\/td><td>The FTP client connects to the server for the data connection.<\/td><td>It usually works more reliably when the client is behind a firewall or NAT router.<\/td><\/tr>\n<\/tbody>\n<\/table><\/figure><\/div>\n\n<div id=\"mybox-757711441\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">In both modes, the initial control connection is used for commands such as login and directory requests. A separate data connection is then needed to list folders, upload files, download files, or perform other file operations. The control connection can therefore succeed even when the data connection cannot be established.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_active_FTP_works\"><\/span>How active FTP works<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">In active mode, the client tells the server where to connect for the data session. The server then starts the connection back to the client. This design can work when the client has a reachable network address and its firewall allows the incoming data connection.<\/p><p class=\"wp-block-paragraph\">Active mode is more likely to fail when the client is behind a NAT router. NAT changes how devices on a private network are reached from outside. A local client address may not be directly reachable by the FTP server, and the router or firewall may reject the incoming data connection. The FTP login can remain active because the control connection was established separately.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_passive_FTP_works\"><\/span>How passive FTP works<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">In passive mode, the server prepares a listening data endpoint and tells the client where to connect. The client then opens the data connection to the server. This keeps both the control and data connections initiated by the client.<\/p><p class=\"wp-block-paragraph\">Passive mode is usually the first choice for website owners who connect from a home, office, or mobile network. It avoids the server initiating a connection into the client&#8217;s network. The server must still be configured to accept passive data connections, and the server-side firewall must allow the passive connection range.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_firewalls_and_routers_affect_FTP_mode\"><\/span>Why firewalls and routers affect FTP mode<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">Firewalls inspect and control network connections. A firewall on the client side can block the incoming connection required by active FTP. A firewall on the server side can block the incoming connection required by passive FTP. A router using NAT can also prevent a connection from reaching the device or service that needs it.<\/p><p class=\"wp-block-paragraph\">FTP therefore depends on matching the transfer mode with the network path. Active mode requires the client side to accept a connection from the server. Passive mode requires the server side to accept a connection from the client. A setting on either side can prevent directory listings and transfers even when the username, password, and server address are correct.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Which_FTP_mode_should_you_use\"><\/span>Which FTP mode should you use?<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">Use passive FTP first when the FTP client is on a network protected by a firewall or NAT router. This is the common arrangement for home and office internet connections. Passive mode lets the client create the data connection, which avoids the main incoming-connection problem found with active mode.<\/p><p class=\"wp-block-paragraph\">Try active FTP when passive mode cannot connect and the client network is configured to accept the server&#8217;s incoming data connection. Active mode also requires the client to report a reachable address and port to the server. If the client is behind NAT, active mode may need router or firewall support before it can work.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_test_the_correct_mode\"><\/span>How to test the correct mode<span class=\"ez-toc-section-end\"><\/span><\/h2><ol class=\"wp-block-list\">\n<li>Open the FTP client connection settings and select passive mode.<\/li>\n<li>Connect to the FTP server and wait for the login to complete.<\/li>\n<li>Open a remote directory or refresh the directory list.<\/li>\n<li>Test a small file upload or download if the directory list loads.<\/li>\n<li>Read the FTP client log and note whether the control connection succeeds but the data connection fails.<\/li>\n<li>If passive mode fails, check whether the server supports passive connections and whether its firewall allows the configured passive ports.<\/li>\n<li>Test active mode only when the client network can accept an incoming connection from the server.<\/li>\n<li>After changing the mode, disconnect and reconnect before testing again.<\/li>\n<\/ol><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_the_result_tells_you\"><\/span>What the result tells you<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">If both login and directory listing work in passive mode, keep passive mode selected. If login works but directory listing fails in passive mode, the problem is likely in the server&#8217;s passive configuration or server-side firewall rules. If active mode works but passive mode does not, the server&#8217;s passive data settings need attention.<\/p><p class=\"wp-block-paragraph\">Reliable file access is useful for site maintenance, manual backups, and code edits. When connection errors continue after testing both modes, provide the FTP client log and the selected transfer mode to support. The log helps separate an authentication problem from a blocked data connection. For secure file transfers, FTPS adds SSL or TLS encryption to FTP and protects login details and file contents. <a href=\"https:\/\/mybox.com\/help\/knowledgebase\/protocols-ftp\/\">FTP basics<\/a> and <a href=\"https:\/\/mybox.com\/help\/knowledgebase\/protocols-ftps\/\">FTPS security<\/a> provide related protocol information.<\/p><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[11405,10,23],"manual_kb_tag":[10731,12032,12033,12034,12041,12042,12043],"class_list":["post-14768","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-tls-encryption","manualknowledgebasecat-safety","manualknowledgebasecat-ftp","manual_kb_tag-ftp","manual_kb_tag-firewalls","manual_kb_tag-nat","manual_kb_tag-file-transfers","manual_kb_tag-active-ftp","manual_kb_tag-passive-ftp","manual_kb_tag-ftp-connection-issues"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":4,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14768\/revisions"}],"predecessor-version":[{"id":14796,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14768\/revisions\/14796"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=14768"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=14768"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=14768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}