FTP using Active Mode

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Hi,

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.

Actually i want code in c# which connects FTP Server in active mode.

Regards,

Jay R Mehta
 
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
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
Back
Top