Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.8k views
in .NET FTP by (160 points)
Hi folks,

I'm new to this method of communication, so pardon in faltering!:)

To make a long story short, if I use DTftp and build a client, I can connect to a local server and retrieve a file just fine. However, when I try it on a remote server, I can logon (see the result in the VisualStudio window), chdir (same thing - last return it 'cwd was successful' but, when I try to GET, or even DIR, it times out with a long-winded message about the host not responding in time.

I'd think it was a firewall issue, but I can retrieve the file from the same location from a command window using ye olde FTP.

Any ideas?

Many thanks in advance,
Kind Regards,
Ron

2 Answers

0 votes
by (162k points)
Ye olde FTP is probably using active (PORT) mode transfers.

Try changing to active mode (the default is passive, PASV)

Hi folks,

I'm new to this method of communication, so pardon in faltering!:)

To make a long story short, if I use DTftp and build a client, I can connect to a local server and retrieve a file just fine. However, when I try it on a remote server, I can logon (see the result in the VisualStudio window), chdir (same thing - last return it 'cwd was successful' but, when I try to GET, or even DIR, it times out with a long-winded message about the host not responding in time.

I'd think it was a firewall issue, but I can retrieve the file from the same location from a command window using ye olde FTP.

Any ideas?

Many thanks in advance,
Kind Regards,
Ron
0 votes
by (160 points)
:lol:

Sorry so long getting back - I was away yesterday and didn't pick up your reply until about nine o'clock last night.

Many thanks! I'd thought about active vs passive but, based on what I read on the internet thought 1) No one uses 'active' and 2) if they did, command line ftp wouldn't be smart enough to switch to it without being told.

Looks like I owe Microsoft an apology!

My FTP class now works a treat - thanks again! :)
Kind Regards,
Ron

Categories

...