I am new to FTP protocol, here i have read about active and passive modes in ftp.
Active mode: means client will send port number to server for Data communication. Passive mode:means server will send port number to client for Data communication.
Here these and all okay
my doubt is in passive mode For initial control connection both will communicate on some port no example 5000 .After server receive "PASV" command server will send port number example 5010.
After server sends port number to client, whether server should close port no 5000,and start listing on 5010 port? or both ports should be active?
for Commands i need to use older port(5000) and for data communication i need to use new port(5010), or how it is?
Can anyone help me this