Hi,
In the edtFTPj/PRO developer guide the following is under the topic "How to FTP through a SOCKS proxy":
To direct socket communications via a SOCKS proxy, the ProxySettings of the client must be set appropriately. An example is shown below:
ProFTPClient ftp = new ProFTPClient();
ftp.getProxySettings().setProxyAddress("myinternalproxyaddress");
ftp.getProxySettings().setProxyPort(1080);
ftp.getProxySettings().setProxyPassword("myuser");
ftp.getProxySettings().setProxyUserName("mypassword");
ftp.getProxySettings().setPublicProxyAddress("mypublicproxy");
ftp.getProxySettings().setProxyType(ProxyType.SOCKS5);
Note that the public proxy address is generally only required when using FTP in active mode. In this situation, the PORT command must advertise the public proxy address to the FTP server that will be connecting back to the client.
* * *
Can you please clarify the note about the public proxy address. Is it sufficient to simply set the publicProxyAddress when using Active mode or is their additional coding required in order for the PORT command to advertise the public proxy address to the FTP server ?
Also, I don't understand the difference between "myinternalproxyaddress" and "mypublicproxy". Is one an IP and the other a host name ? Are they the same box ? Can you explain the scenario in more detail ?
Thanks,