port command

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
lijepdan131
500 Command not understood
Posts: 5
Joined: 2013-03-21 09:35
First name: lijep
Last name: dan

port command

#1 Post by lijepdan131 » 2013-03-21 16:25

when I send port command to the server:
port 172,16,0,153,82,119
Do i tell to the server that this is going to be my data port (82*256+119=21111) and then server sends me his
data port? Or I am not right?

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: port command

#2 Post by botg » 2013-03-21 22:26

A bit of both.
port 172,16,0,153,82,119
Do i tell to the server that this is going to be my data port (82*256+119=21111)
Correct.
and then server sends me his
data port? Or I am not right?
Wrong. If the client selects active mode by virtue of sending the PORT command, it tells the server to connect to the given address and port upon receiving a transfer command.

For details, see RFC 959.

lijepdan131
500 Command not understood
Posts: 5
Joined: 2013-03-21 09:35
First name: lijep
Last name: dan

Re: port command

#3 Post by lijepdan131 » 2013-03-22 21:36

I finished my FTP Client application!!!!!!!!

Post Reply