How to Check FTP Port 21 Is Not Blocked

Waryanto
Technical Content Writer, Loves the world of Technical IT, Digital Marketing & Travel Blogging. Likes to share new things that are useful for others.

March 20, 2017

1 min read

Checking port 21 whether it is blocked or not, can be through the terminal or command prompt. Port 21 is generally made for FTP (File Transfer Protocol) connections, this port is used by FTP clients to connect to the FTP server when the user will access the FTP server. So if you have problem connecting FTP client to your FTP account, this is a great way to check if port 21 is blocked or not.

Read also: How to Check SMTP Port 587 is Not Blocked

What Do You Need to Check FTP Ports?

Before moving on to the next step, make sure that you can access the Command Prompt (Windows), Terminal (Linux), or MacOS Terminal.

Step 1: Open Command Prompt/Terminal on Your Computer

There are slight differences in this first step, depending on the operating system you are using. If you are using Windows, you can use the Command Prompt. Meanwhile, you can use Terminal for both Linux and MacOS operating systems. Here we present the method for you.

id="Windows">Windows

First of all, please press the button Windows + R on your keyboard to display functions Run. After that you will see a screen like below.

run on windows

type cmd in the available fields, then press the button OK.

You will see the Command Prompt display in black.

windows command prompt

To check if port 21 is open, telnet on Windows needs to be enabled first. If telnet is not active, you will get a message like below.

style="padding-left: 30px;">'telnet' is not recognized as an internal or external command, operable program or batch file.

If you see a message like the one above, please enable telnet first. You can follow the steps below.

1. Click button Start on Windows or press the key Windows on your keyboard.

2. Type “Turn Windows features on and off“then press ENTER.

3. After that, search Telnet Client, put a check mark, then press the button OKas seen in the image below.

activate telnet

Linux

To open Terminal on Linux, please press button Ctrl+alt+T simultaneously. Next you will see a black screen console as shown below.

loading="lazy" class="aligncenter wp-image-2963" title="ftp port" src="https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1.png" alt="linux terminal" width="521" height="296" srcset="https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1.png 526w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1-300x171.png 300w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1-500x284.png 500w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1-400x227.png 400w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1-200x114.png 200w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/terminal-linux-1-50x28.png 50w" sizes="(max-width: 521px) 100vw, 521px"/>

Also Read: Easy Ways to Create an FTP Server

MacOS

Meanwhile, to open Terminal on MacOS, please first open the MacOS Launchpad by pressing the button F4.

After that please search by typing “terminal” without quotes and press ENTER.

mac terminal

Step 2: Use Telnet to Check Port 21 Not Blocked

After the Command Prompt / Terminal console opens, please type the code below. Enter your website’s domain name instead yourdomain.com.

telnet domainanda.com 21

check port 21

If it is successful, you will see a message as seen below.

220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 8 of 100 allowed.
220-Local time is now 09:57. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 3 minutes of inactivity.

loading="lazy" class="aligncenter wp-image-2965" title="ftp port" src="https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21.png" alt="port 21" width="650" height="204" srcset="https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21.png 663w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21-300x94.png 300w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21-500x157.png 500w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21-400x125.png 400w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21-200x63.png 200w, https://www.ipadguides.co.id/blog/wp-content/uploads/2017/03/port-21-50x16.png 50w" sizes="(max-width: 650px) 100vw, 650px"/>

If you don’t see the message, it means Port 21 is blocked.

Conclusion

In this tutorial you have learned how to use telnet to check if the default FTP port 21 is open. If the results of the check show that the port is closed, the best thing you can do is to contact your service provider and request that this port be opened. Closing Port 21 means you cannot use FTP hosts on the network.

Submit your ideas or questions through the comments column at the end of this page. Then, don’t forget to click the button Subscribe to keep getting our latest reviews straight from your inbox ?

Create by Ipadguides in category of Blog