This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / dennis2 问个问题, what's the port number for rogers' ftp site data connection, is it random, or using a particular number (if it is, what's it)? thanks
-rootbear(啤酒晕头);
2002-4-21
(#473265@0)
-
For active ftp, the ftp server uses tcp/20 as the source port for data connection. For passive ftp, the ftp server opens up a higher (random) port waiting for connection from the client.
-dennis2(Dennis);
2002-4-22
(#473796@0)
-
thanks, so if I open port 20, that would be fine, let me try tonight.
-rootbear(啤酒晕头);
2002-4-22
(#474112@0)
-
Auh, I don't quite understand what you mean. Open up port 20 ... on where? your router? If so it's not that simple. I think passive ftp might be a better solution.
-dennis2(Dennis);
2002-4-22
(#474666@0)
-
still not working, I'm behind a router which by default not opens all the ports, but when I try to connect to rogers ftp site, the data connection port keeps changing at each attempt, even i set the mode to active, ;-(
-rootbear(啤酒晕头);
2002-4-23
(#476487@0)
-
I know it's not going to work. :-) That's why I suggest you use passive ftp whenever possible when you behind a router (firewall).
-dennis2(Dennis);
2002-4-23
{2563}
(#476673@0)
-
thanks a lot, dennis // I could work around it, ftp directly from the router pc works, plus it works fine in my office, definatelly the problem of the router setting, understand more about ftp, ;-)
-rootbear(啤酒晕头);
2002-4-23
(#477167@0)
-
My two cents............1. FTP server by default use port 21, but might use other port number as well. So, you should make sure you specify the correct port number when try to connect to the Rogers FTP site you mentioned;
2. I think you are changing the configuration of your FTP client, what's the error code you got when the connection fail?
-beavis(brian);
2002-4-23
{323}
(#476923@0)
-
err: data connection refused. which means my router does not allow the incoming data connection port, since it's random, i could not even enable it. // btw port 21 works fine
-rootbear(啤酒晕头);
2002-4-23
(#477159@0)
-
Is this the error sent by your router or FTP server? Most of the client applications use port number above 1024, randomly. It will be weird you only have problem with FTP. I doubt your FTP client setting too.
-beavis(brian);
2002-4-23
(#477287@0)
-
You should 'permit' port 21 as well, it's use for control connection.
-beavis(brian);
2002-4-22
(#474956@0)
-
thanks, yes, i did, i can connect to the site, failed at data connection
-rootbear(啤酒晕头);
2002-4-23
(#476491@0)