Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (360 points)
I am trying to connect to a server that requires setting the client/local port range. They have detailed instructions on how to configure this for both the CuteFTP and WSFTP clients.

Using the EDT library, the server is denying the data channel connection and sure enough (the local port) it is outside the range specified. (I can see this in Ethereal traces)

I see a read-only FTPConnection.ActivePortRange. But this is read only, and I want to be in PASV mode

I can find a PortRange class, which includes the following remarks: "If the range is set to anything other than the default then ports will be selected sequentially, increasing by one until the higher limit is reached and then wrapping around to the lower limit. "

So, how do I set this?

Any help would be greatly appreciated. Thanks,

James Smyth

1 Answer

0 votes
by (51.6k points)
Try
myConnection.ActivePortRange.LowPort = 10000;
myConnection.ActivePortRange.HighPort = 11000;


- Hans (EnterpriseDT)

Categories

...