Re: FTP using Active Mode

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Jay,

I have a problem in connecting to FTP Server in Passive Mode. Actually
server is behind firewall.
Now can anybody tell me how to connect Server in Active Mode.

I believe there is some mixup with terminology here, since the active mode
is the default for the FTP protocol. You need to specifically tell to the
FTP client to use the passive mode (PASV command).

Here's a link to a web page that talks about the issue:

http://www.filecopa.com/manual/html/principles.html

Once you have mastered how the FTP protocol works (and what you firewall
expects), then I believe it should be easy to program a solution with C#. I
suggest trying first a ready-made FTP client such as WS_FTP. Also make sure
you are not bitten by the possible Network Address Translation (NAT)
problem.

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@xxxxxxxxxxxxxxxxxxxxxx
http://www.saunalahti.fi/janij/


.



Relevant Pages

  • Re: Why would it appear to my scripts that a server theyre connecting to has gone away (using Net::F
    ... For example, the ftp server is ... firewall and from the machine running my script. ... "passive mode" the server expects a connection from the client). ... log file snippet suggests that you are using active mode and that the ...
    (comp.lang.perl.misc)
  • Re: [fw-wiz] Active to Passive FTP translator?
    ... The threat is that the firewall protecting the client needs to allow ... the attacker is allowed to connect to the sql server. ... For firewalls that do not reassemble the ftp control channel TCP stream, ... clients to speak active mode, ...
    (Firewall-Wizards)
  • Re: FTP and MSIE
    ... ftp in active mode, the server is the one that initiates & controls the data ... Since Windows Firewall by default blocks incoming connections, ... enable ftp in firewall and you ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Cant ftp from Linux box to windows-server - setsockopt
    ... It seems like you've got some restritive firewall issues going on between ... If active mode works from a different machine, ... server chooses from for passive mode connections. ...
    (microsoft.public.inetserver.iis.ftp)
  • RE: pb with P2P...
    ... Many firewalls can understand the ftp protocol and ... port to open. ... changes the selection of the data port to the server ... firewall being able to accommodate this connection). ...
    (Security-Basics)