2

Can you tell me what are the ports that need to be open for FTP?

2
  • 3
    I put your question title into Google and found more answers than you will ever need. Dec 21, 2010 at 22:54
  • Please see the Protocol overview on Wikipedia FTP page.
    – Zoredache
    Dec 22, 2010 at 1:34

4 Answers 4

4

The FTP server always receives traffic on port 21. It sends out traffic with a source port of 20 while using active ftp and with a a random port greater than or equal to 1024 while using passive ftp.

1
  • The second sentence deserves some clarification: In the Active mode transfer, the client starts listening on a random port and the server connects to back it (from its source port 20 – source ports are usually not interesting when comes to networking/firewall). In the Passive mode transfer, the server starts listening on a random port and the client connects to it. In both cases, for the random ports, the client/server typically allows configuring the port range. Mar 4 at 13:08
1

Well-known Port Numbers

1
  • While this is somewhat useful, I doubt it is enough for the person asking to understand ftp enough to permit it through a firewall/nat which is the most likely real question.
    – Zoredache
    Dec 22, 2010 at 1:37
0

This is a list of Internet socket port numbers used by protocols of the Transport Layer of the Internet Protocol Suite for the establishment of host-to-host communications.Pls see the 20 th and 21 entry.The FTP server always receives traffic on port 21. It sends out traffic with a source port of 20

alt text

alt text

If u need whole list, go to the following link..

http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

1
  • As a picture? really?
    – Quentin
    Dec 22, 2010 at 10:21
-2

FTP uses port 21, you can forward the port in your firewall

1
  • 1
    This answer is incomplete. Forwarding only port 21 will not work 99% of the time.
    – Zoredache
    Dec 22, 2010 at 1:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .