Can you tell me what are the ports that need to be open for FTP?
4 Answers
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.
-
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
-
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. Dec 22, 2010 at 1:37
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
If u need whole list, go to the following link..
http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
FTP uses port 21, you can forward the port in your firewall
-
1This answer is incomplete. Forwarding only port 21 will not work 99% of the time. Dec 22, 2010 at 1:36