Skip to main content

Header Reseller Branding

  • Home
  • Frequently Asked Questions
    • Logging into the Control Panel
    • Changing Name Servers of a Domain Name
    • Managing DNS Resource Records
    • Using the Web Hosting Service
    • Explaining Domain (Transfer) Secret or Authorization (Auth) Code and How to Obtain it from your Current Registrar?
    • Transferring a Domain Name from Another Registrar to Answerable.com
    • Domain / URL Forwarding
    • Customer Control Panel Guide
    • Registering and Managing Child Name Servers
    • Using the DNS Service
    • DNS and types of Resource Records Answerable.com allows
    • Using the Free Email Service
    • Listing, Searching and Managing Domain Name Registration Orders
    • Uploading Content to your Website
    • Moving or Pushing a Domain Name from one Customer Control Panel to another
    • What are the permitted Countries of Operation?
  • Logging into the Control Panel
  • Domain Names
    • Listing, Searching and Managing Domain Registration Orders
    • Changing Name Servers of a Domain Name
    • Managing Whois or Contact Details of Domain Names
      • Modifying the Whois (Contact Details) of Domain Names
      • Modifying the Whois / Contact Details of a .UK Domain Name
      • Managing Contacts from within the Customer Control Panel
      • Hiding Contact Details through Privacy Protection in the Whois of a Domain Name
        • Defining Privacy Protection
        • How can People Contact you if you Enable Privacy Protection for your Domain Name?
        • Purchasing / Renewing Privacy Protection
        • Enabling/Disabling Privacy Protection for a Domain Name
        • How can you Enable/Disable Privacy Protection of Multiple Domain Names?
      • Resellers: Controlling the display of your Brand Name in the Whois Lookup Results for .COM / .NET Domain Names
      • Checking the Whois for a Domain Name
      • Hiding/Publishing Registrant Organization in the Whois of a Domain Name
      • Hiding/Publishing Contact Details in the Whois of a .TEL Domain Name
      • Hiding/Publishing Contact Details in the Whois of a .CA Domain Name
    • Hiding Contact Details through Privacy Protection, in the Whois of a Domain Name
    • GDPR
      • What is GDPR?
      • Managing GDPR Protection settings
    • Transferring a Domain Name
      • Confirming if a Domain Name can be Transferred
      • Transferring a Domain Name from Another Registrar to Answerable.com
        • Explaining Domain (Transfer) Secret or Authorization (Auth) Code and How to Obtain it from your Current Registrar?
        • Transferring your Domain Name
        • Transferring a .UK Domain Name
        • Bulk Transfer
        • Cancelling a Domain Name Transfer
        • Important - Domain Name Transfer Caveats
      • Transferring a Domain Name from Answerable.com to Another Registrar
        • Transferring a Domain Name to Another Registrar
        • Transferring a .UK Domain Name to Another Registrar
        • IMPORTANT: Domain Name Transfer Caveats
        • Fast Transfer
          • What is fast transfer?
          • How do I opt-in my domain name for Fast Transfer?
          • How do I find and opt-out names from the Fast Transfer service?
      • Domain Name Transfer Caveats
        • Understanding the Status of a Domain Name Transfer
        • Lost One Year when Transferring a Domain Name from One Registrar to Another
        • Domain Name Transfer Completed but Domain Name is Still Inactive
      • Locating and Modifying the Domain (Transfer) Secret/Authorization Code for a Domain Name
    • Deleting a Domain Name
    • Protecting/Locking a Domain Name
    • Domain Protect+
    • Registering and Managing Child Name Servers
    • Suspending / Unsuspending Domain Names
      • Suspending / Unsuspending a Domain Name
      • Bulk Suspension / Unsuspension of Domain Names
    • Renewing Domain Names
      • Renewing a Domain Name
      • Bulk Renewal of Domain Names
      • Understanding Domain Name Expiry and Display of a Parking Page
    • Domain Name System Security Extensions (DNSSEC)
      • What is DNSSEC?
      • Adding Delegation Signer (DS) Records
      • TLDs supporting DNSSEC
    • Domain Name Registration Default Settings
    • Viewing Action History
    • Restoring a Deleted Domain Name from the Redemption Grace Period
    • Domain Name Registration Caveats
      • Overview of TLDs (Domain Name Extensions)
      • Interpreting Domain Name Check Availability Results
      • Interpreting Order Locked In Processing Messages
      • Support for Internationalized Domain Names (IDN)
      • .ASIA Domain Name Rules/Requirements
      • .CA Domain Name Rules/Requirements
      • .CO Domain Name Rules/Requirements
      • Understanding .EU Domain Names
        • .EU Domain Name Rules/Requirements
        • Understanding .EU Domain Name Contacts
      • .JOBS Domain Name Rules/Requirements
      • .ME Domain Name Rules/Requirements
      • .MOBI Domain Name Rules/Requirements
      • .NAME Domain Name Rules/Requirements
      • .NZ Domain Name Rules/Requirements
      • .PRO Domain Name Rules/Requirements
      • .PW Domain Name Rules/Requirements
      • .SC Domain Name Rules/Requirements
      • .TEL Applications
      • .TEL Domain Name Rules/Requirements
      • .UK Domain Name Rules/Requirements
      • .US Domain Name Rules/Requirements
      • .VC Domain Name Rules/Requirements
      • .CO.ZA Domain Name Rules/Requirements
      • .IN Restricted Email List
      • Identifying CentralNic Domains
      • Premium Domains
      • Sunrise Period
      • Identifying New gTLD Extensions
      • New gTLD Wishlist
    • Whois Data Verification
    • Whois Data Reminders
    • DNS
    • Domain / URL Forwarding
    • Domains Product Maintenance Notices
  • Hosting
    • Single Domain Linux Hosting
      • Accessing your Single Domain Linux Hosting Package
      • IMPORTANT: cPanel Single Domain Linux Hosting Package User Guide
      • RESELLERS: Read this to Setup your Single Domain Linux Hosting Business
    • Single Domain Windows Hosting
      • Accessing your Single Domain Windows Hosting Package
      • IMPORTANT: Plesk Single Domain Windows Hosting Package User Guide
      • RESELLERS: Read this to Setup your Single Domain Windows Hosting Business
    • Legacy Web Hosting
      • Using the Web Hosting Service
      • Listing, Searching and Managing Web Hosting Orders
      • Web Hosting Service Guide
        • How can I view my website in a browser if my domain is pointing elsewhere?
        • SSL
          • Issues that Digital Certificates Address
          • Activate SSL for your Hosting Package
          • Certificate Authority
          • Generating a Certificate Signing Request (CSR)
          • Installing your Digital Certificate
          • Generating a Self-signed Certificate
          • Uninstalling your Digital Certificate
          • Installing your Intermediate CA Certificate or CA Bundle
        • Back-up your Website
          • Adding a Backup Policy
          • Listing/Modifying and Deleting Backup Policies
        • Domain Aliases
          • Domain Alias
          • Adding Domain Aliases
        • Managing your Plesk Windows Hosting package
          • Accessing/Managing your Plesk Windows Hosting package
          • IMPORTANT: Plesk Windows Hosting package User Guide
        • Managing your cPanel Linux Hosting package
          • Accessing/Managing your cPanel Linux Hosting package
          • IMPORTANT: cPanel Linux Hosting package User Guide
          • Migrating your cPanel Linux Hosting package from another Web Hosting company to Answerable.com
      • Upgrading / Downgrading a Web Hosting Order
      • Legacy Web Hosting Deprecation
      • DNS for Web Hosting
    • Sample Scripts
      • Linux Hosting related Scripts
        • PHP-based Form Mail (Feedback) Script
        • Perl-based Form Mail (Feedback) Script
        • PHP Script to Test MySQL Database Connectivity
      • Windows Hosting related Scripts
        • Collaboration Data Objects (CDO)
        • ASP Script to Test MSSQL Database Connectivity
    • Uploading Content to your Website
      • Configuring and using various FTP Clients
        • Should I use Active or Passive mode for FTP?
        • Using FTP software to manage your Content
          • CuteFTP
          • Core FTP
          • SmartFTP
          • WinSCP
          • FileZilla
      • File/Folder Permissions and Groups
      • Do you allow Anonymous FTP?
    • Email Hosting
      • Using the Email Hosting service
      • Email Administrator's Guide - Create and Manage Accounts
        • Managing Mailing Lists
      • Email User's Guide - Access your Email
        • Configuring different Email Clients to send/receive Email
        • Accessing your Email from the Webmail Interface
        • Auto-responders
      • Email Hosting Caveats
        • File extensions that are not allowed as attachments
      • DNS for Email Hosting
      • Domain / URL Forwarding for Email Hosting
      • Personal Email Deprecation
    • Website Builder
      • Setting up your Website Builder Order
      • RESELLERS: Read this to Setup your Website Builder Business
      • DNS for Website Builder
    • Hosting Caveats
      • Purchasing a Hosting Order for Internationalized Domain Name (IDN)
      • Modifying the hosts file
      • Ports open for outgoing connections
      • Debugging Perl/CGI Scripts
      • SMTP Server settings for sending mails through your website
      • Switching PHP Version
      • Shared Hosting Limitations
      • SSH Access
      • SymLinks Settings of cPanel Linux Hosting packages
      • Creating and Restoring Backups in cPanel
      • Creating and Restoring Backups
      • Restriction on upload of executable files under Windows Hosting
      • HTTP to HTTPS Redirection - Apache
      • HTTP to HTTPS Redirection - IIS
      • How do I set the default page?
      • How do I unblock port 80/443 ?
      • How do I add custom error pages for Linux hosting?
      • How do I add custom error pages for Windows hosting?
      • Enable Cloudflare on cPanel
      • Varnish
      • How do I change the Primary domain of my hosting plan?
      • Managing registered email address for scripts
      • Unblocking Email Accounts in cPanel
  • Order Management
    • Listing, Searching and Managing your Orders
    • Locating the Name Servers or DNS Records to Use
    • Directory and File Structure - Linux
    • Directory and File Structure - Windows
    • Enabling SSL or a Dedicated IP Address
    • Renewal Reminder for Orders
    • Renewing, Deleting your Order
    • Upgrading / Downgrading an Order
    • Suspending / Unsuspending an Order
    • Moving or Pushing an Order from one Customer Control Panel to another
    • Bulk Actions
      • Registering Domain Names in Bulk
      • Transferring Domain Names in Bulk
      • Renewing Orders in Bulk
      • Suspending or Unsuspending Orders in Bulk
      • Locking or Unlocking Domain Names in Bulk
      • Modifying Name Servers in Bulk
      • Modifying Contacts in Bulk
      • Enabling / Disabling Theft Protection in Bulk
      • Privacy Protecting Domain Names in Bulk
      • Moving Domain Names in Bulk
      • Listing All Running Bulk Actions
  • DNS
    • DNS and types of Resource Records Answerable.com allows
    • Using the DNS Service
    • Locating the DNS Service Interface
    • Managing DNS Resource Records
    • DNS Caveats
      • No NS A records at Nameservers Failure Message
  • Accessing your Domain Backorder
  • Domain Backorder Setup Guide
  • FAQ
  • Domain / URL Forwarding
    • Using the Domain Forwarding Service
    • Locating the Domain Forwarding Service Interface
    • Managing the Domain Forwarding Service
    • Domain / URL Forwarding Caveats
      • No NS A records at Nameservers Failure Message
  • Free Email Service
    • Using the Free Email Service
    • Locating the Free Email Service Interface
    • Managing the Free Email Service
    • Free Email Service Caveats
      • No NS A records at Nameservers Failure Message
  • Customer Control Panel Guide
    • Creating a Demo Customer Account
    • Logging into the Control Panel
    • Your Profile and Settings
      • Changing your Control Panel Username, Mobile Number and other Contact Details
      • Changing your Control Panel Password
      • Changing your Personal Identification Number (PIN)
      • Setting your Email Preferences
      • Setting your SMS Preference
      • Setting your Language Preferences
    • 2-Step Verification
      • FAQs
      • How do I enable 2-Step Verification?
      • How do I disable 2-Step Verification?
    • Manage Billing
      • Adding Funds in your Debit Account
      • Executing an Order / Balancing an Invoice or Debit Note
      • Cancelling an Order / Invoice
      • Requesting Refund from Answerable.com
      • Listing / Searching your Transactions
      • Locked Funds
      • EU VAT FAQs
      • Service Tax FAQs
      • GST FAQs
      • VAT for Russia FAQs
    • Listing All Orders under your Customer Account
    • Viewing your Login History
    • Viewing all important Announcements posted in your Control Panel
    • Customer Control Panel Caveats
      • Restriction on Change of Country and Legal Name
      • Session Timeout

Should I use Active or Passive mode for FTP?

FTP exists primarily for the transfer of data between two end points. FTP differs from HTTP (Hyper Text Transfer Protocol, used for serving websites via web browsers) fundamentally as it is an application made up of two distinct TCP connections:

  • Control connection: This TCP-based connection is used to provide a communications channel for the delivery of commands and replies. This is effectively the mechanism that enables the user to tell the server which file is being requested, which directory it is in, and so forth.

  • Data connection: The second TCP-based connection is used for the actual transfer of user data. Once the Control connection has been used to exchange information on which file is required, the Data connection is used to transfer the file between the client and server.

Using these two communication connections, two distinct modes of operation determine in which direction the connections are established: Active mode and Passive mode.

FTP is a TCP based service exclusively. There is no UDP (User Datagram Protocol transports data as a connectionless protocol, using packet switching) component to FTP. FTP is an unusual service in that it utilizes two ports, a Data port and a Command port (also known as the Control port). Traditionally these are port 21 for the Command (Control) port and port 20 for the Data port. The confusion begins however, when we find that depending on the mode, the data port is not always on port 20.

Active FTP

In active mode FTP, the FTP client software connects from a random unprivileged (unprivileged port is a port which is higher than 1023) port. Let's say N is the FTP server's command port, port 21.

Then, the client starts listening to port N+1 and sends the FTP command PORT N+1 to the FTP server. The server will then connect back to the client's specified data port from its local data port, which is port 20.

Here in this mode of FTP, Answerable.com doesn't need to open any additional non-secure ports on our servers firewall and hence is secure from the server-side.

Passive FTP

In passive mode FTP, the FTP client initiates both connections to the server. When opening an FTP connection, the client opens two random unprivileged ports, lets say N and N+1. The first port contacts the server on port 21, but instead of then issuing a PORT command and allowing the server to connect back to its data port, the client will issue the PASV command. The result of this is that the server then opens a random unprivileged port lets say P and sends the PORTcommand back to the client. The client then initiates the connection from port N+1 to port P on the server to transfer data.

This method of FTP is insecure, as a random unprivileged port is opened on the Server. This is a potential security issue and it isn't advisable to use the Passive mode of FTP.

Note

All Answerable.com Windows and Linux web servers support both Active as well as Passive modes.

All popular FTP software allow users to select the data connection mode (Active or Passive), when uploading/downloading data to a web server.

Additional Information

Setting data connection mode in:

  • CuteFTP

  • CoreFTP

  • SmartFTP

  • WS_FTP

  • FileZilla

Answerable.com