开发者

specific ports in ftp(client)

开发者 https://www.devze.com 2022-12-27 12:58 出处:网络
i am using a ftp connection to send data beteen server and client.servers command port is 21 and data port is 20,i want the client port specified by user is that possible,

i am using a ftp connection to send data beteen server and client.servers command port is 21 and data port is 20,i want the client port specified by user is that possible,

 Ftp:

 command : client >specificport(user defined) --> server --21
 data  开发者_JS百科  : client >specificport(user defined) --> server --20


If it's an active connection then the client uses the PORT command to tell the server which port it should connect to.

PORT Syntax: PORT a1,a2,a3,a4,p1,p2

Specifies the host and port to which the server should connect for the next file transfer. This is interpreted as IP address a1.a2.a3.a4, port p1*256+p2.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号