Open ftp port 21 on windows XP operating system

MS-Windows XP service pack 2 comes with in build firewall. If Microsoft Windows Firewall is blocking a port that is used by a service or by a program, you can configure the Windows Firewall to create an exception. Windows Firewall may be blocking a program or a service if Programs do not respond to a client’s request or you do not get data from server.

Open ftp port 21
To open ftp port 21 you need to change windows firewall settings.
Click on Start > Settings > Control Panel > Click on Security center

At the bottom window (Manage security setting for:) you will see Windows Firewall option. Click on this option. It will open Windows Firewall dialog box:

Select Exception tab > Click on Add port

Add port 21 and 20 and save the firewall (see above two figures).
Save firewall by clicking on Ok button. You are done now your Windows XP box will allows incoming FTP connection. Please note that you need to run FTP server in order to establish connection.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 29 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
29 comments… add one
  • chriss Jul 25, 2007 @ 11:45


    I am stuck…
    I have allow theport 20 21 in tcp and udp but i still cannot download on a ftp server like

    Help !!!!



  • Milind Sep 10, 2007 @ 6:25

    You said you had open port 20 and 21 and still your not able to download.
    Have you check, wherether you are able to donload from other ftp sites ?
    Also check with your ISP if the have block those port


  • blaster01 May 24, 2008 @ 16:27

    How do you open port 443?? HTTPS i believe. This one is closed for me. =(

    • Pierce Jul 12, 2010 @ 18:28

      Go to control Panel. Locate your firewall settings. Once in your firewall settings, Click the Exceptions tab at the top (should be right of general).
      1. Click “Add Port”.
      2. For the name type “HTTPS”
      3. For Port number type “443”
      4. Make sure TCP is checked.
      5. Press okay and that’s all ;D

  • yudi chan May 27, 2008 @ 9:35

    thx for your help opening ftp port 20-21

  • Jesse Jan 1, 2009 @ 1:44

    Yes, hello,

    I am trying to download Norton on the computer I am using right now. I have Norton already on another computer, but need it on this one as well. I have gone through all the steps as shown on this website, but I still can not download Norton. As soon as I click the “DOWNLOAD” button it says it could not connect to FTP etc. etc. I have checked and re-checked and ports 20 and 21 are both on the exception list. Is there anything else I could try?

  • Catherine Mar 5, 2009 @ 15:44

    Good morning! After reading your web sites
    instructions on opening up my FTP ports, I was able to do so effortlessly and save myself a trip to the computer repair.
    Recently my computer was infected with the A360 Virus…I run a clean computer and I thought I had a good anti virus system in it, but I was wrong and it really took hold of my sysem.
    I took my Dell to Best Buy where the Geek Squad got the virus out of my computer, but my ports were also infected (my opinion) I learned this later in the evening as I was trying to work with my programs. The guy at Norton told me to get my FTP ports looked at…Best Buy never did and they charged me $200.00. I did my research and found you on Google, Thanks to you I now have my computer back. Your instructions were clear and easy to follow. Thank you so much for helping me with this problem.

  • a Mar 14, 2009 @ 22:08


  • Prashant Mar 17, 2009 @ 8:49

    I am trying to connect to a system from cmd prompt using ftp -> open-> user -> password. Once all the information is provided it says user logged in. But i am not able to view any files(ls or Dir) also i am not able to change the home directory.
    ftp> cd E:/
    550 E:/: The filename, directory name, or volume label syntax is incorrect.

    Can you help me out?

  • Benjamin Apr 14, 2009 @ 14:20

    Another important thing to remember is that you may also need to go into the ‘Advanced’ tab, select your network connection, click ‘Settings’, and enable FTP on the Settings screen. Windows Firewall is so stupid that it needs to be told twice to allow FTP traffic.

    • Joe May 18, 2010 @ 4:46

      Thank you so much Benjamin!!!! I’m been beating my head against a wall for about 2 hours on this one. I thought I had my ports opened and set. I didn’t realize that stupid Windows needed to be told 2x what to do.

      Thanks a million!

  • clyde Apr 26, 2009 @ 1:46

    everyone here trying to use ftp needs to remember to forward the port on your router, as for prashat you need to change the settings on the ftp server software.

  • flighter Feb 17, 2010 @ 19:15

    I am having issues trying to ftp between vista and linux help required.

  • sankar Feb 17, 2010 @ 19:25

    I configured the FTP Server and Data on port 20 and 21 but I am still unable to ftp between vista and Linux. I am also unable to ping I get the error message connection timed out

  • Anonymous Mar 27, 2010 @ 14:44

    i wanted to know how i open the ftp ports
    i try from windows firewall but it was not done yet
    can you help me out

  • shrikant more Mar 27, 2010 @ 14:47

    i wanted to know how to open FTP ports?
    i try through the windows firewall but it can open it.
    so can you help me out.

    • Vishwa Apr 11, 2012 @ 1:48

      Hi all,
      I am not able use the ftp in windows xp. I have to connect the windows xp to ftp server through ftp command and not through other softwares like winscp e.t.c. I was able to ping to the ftp server but not able to connect it. I have checked at the server side ftp ports are fine ( ports 20,21 are in litsening mode). Added the port 20 and 21 exception in windows xp firewall. But this port are still in active state and not in listening state, I confirmed this with netstat -a command. winscp is working fine. let me know why i am not able connect to the server through the ftp command. command which I have used is ftp I am getting timeout message.

  • Avdhesh Jun 9, 2010 @ 19:30

    Is there any good recommended software we can directly install and use to connect to ftp.

  • K!nG Nov 30, 2010 @ 14:58

    I have done all these steps but still not able to get connected..FTP hangs at MLSD command “timed out” . I figured its been blocked by net provider… U can unblock it from your modem but i just don’t know how ???????? can someone help please ??

  • pepi Dec 15, 2010 @ 13:50

    tanky !

  • Svilen Petrov Dec 21, 2010 @ 7:44

    Yes it works. Thanks really. We were trying for more than an hour to find how to do it. Really good procedure

  • Max Feb 5, 2011 @ 18:39

    Can anyone explain to me how to access my WD Livebook (HDD attached to my home router) without using an online service like Monet? Can I do this without using a paid service? And can I allow others to access it as well?

  • Jeremy Apr 11, 2011 @ 23:58

    Stupid is right. I’ve spent hours setting up a windows XP pro computer as a FTP server and none of them said anything about the advance tab and settings button. Thanks! You just ended my quest… onto life.

  • Pankaj Rana Aug 30, 2011 @ 12:58

    when i type it is opening on localhost ftp server
    but unable to open on another hosts in network
    so kindly suggest me
    error: no route to host.

  • Biswajit Oct 6, 2011 @ 8:27

    Please tell me how can i allow port 20. I have windows 7 operating system. Please help me.
    Thanking you

  • Biswajit Oct 6, 2011 @ 8:43

    Sorry, Please tell me how can i allow port 21. I have windows 7 operating system.

  • Tony Bregenza Jan 20, 2012 @ 13:42

    i am using Kasper-sky Internet Security 2011. when i want to reset the trial pack then one message come generally occurs disable windows firewall. In that case will it work?

  • pouya May 17, 2012 @ 5:29

    In my system WinXP sp3 FTP DATA on port 20 don’t work, I use Port 22 for FTP DATA it’s work :)

  • John Jul 11, 2012 @ 13:46

    Hi, i discovered an open ftp port 21, port https 80 and port 873 on one of the website. how can i launch an attack on these to just prfor practice sake?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum