Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question
3  
I put your question title into Google and found more answers than you will ever need. –  John Gardeniers Dec 21 '10 at 22:54
    
Please see the Protocol overview on Wikipedia FTP page. –  Zoredache Dec 22 '10 at 1:34

4 Answers 4

up vote 3 down vote accepted

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.

share|improve this answer

Well-known Port Numbers

share|improve this answer
    
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 '10 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

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

share|improve this answer
    
As a picture? really? –  Quentin Dec 22 '10 at 10:21

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

share|improve this answer
1  
This answer is incomplete. Forwarding only port 21 will not work 99% of the time. –  Zoredache Dec 22 '10 at 1:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.