Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.2k views
in .NET FTP by (340 points)
Hi,
i just test if i can use the edtFTPnet/Express for my app and i have a connection problem.
If have to use an http proxy to access the ftp server. In Filezilla it only works with these settings for the FTP Proxy:

USER %u@%h %s
PASS %p
ACCT %w

How can i make these settings in your component? I have seen a similar thread about this but the solution was for the Java version
and didn't work for my dotnet app. I cant find the FTP Client component and the login method for the connection doesn't have any parameters i can set

This was the solution in the other thread:

*******
The key is the settings you've worked out:

USER %u@%h %s
PASS %p
ACCT %w

So you need to supply these settings. With FTPClient you can do this via

login(String user, String password, String accountInfo)
e.g.
login("user@host proxyuser", "pwd", "proxypwd");
**************

thanks for your help

Georg

6 Answers

0 votes
by (162k points)
Try this:

ftp.User = "user@host proxyuser";
ftp.Password = "pwd";
ftp.AccountInfo = "proxypwd";
0 votes
by (340 points)
Thanks for your reply.

As i understand now i have to use the ftpconnection class and set these properties.

Where do i have to set the proxy adress, ftpconnection doesnt provide any property for this as far as i see now?
My first idea was to use the ExFTPConnection class which has an proxy Property but this did fail (thats why i did open a thread here).

Testing all possible combinations is difficult cause i cant deveolop in production and development environment doesnt have proxy.

thanks

Georg
0 votes
by (162k points)
ftp.ServerAddress = "proxyaddress";
0 votes
by (340 points)
Thanks a lot, works very good now.

Georg
0 votes
by (340 points)
i think i should not have been happy so early...
something strange happens.

if someone enters an valid ip address as servername then the connect hangs.
When using a name e.g. "proxy.provider.com" then its all ok. The IP address is the address of the proxy.

i did start logging all with ethe ftp connection object and all i can see in the log file is the first line.
Which indicates nothing. I configured the ftpconnection with autologin = false
I call the connect method of the ftp connection object and then if the connection is successful call the login method.
I did add handlers for the connecting and connected events. the connecting events fires multiple times but the connected events never happens.
The app is blocked and has to be killed with the task manager.

what may be the cause of this fault?

Any help is welcome.

thanks
Georg
0 votes
by (340 points)
Just for your information. The user entered an invalid port number so the connect run into timeout.

thanks

Georg

Categories

...