FTP using Active Mode

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
 
J

Jani Järvinen [MVP]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top