The FwConnect method establishes a connection to the FTP server via a firewall. If the FTP Client machine is located on a different subnet than the remote FTP Server machine and the only form of communication between these two machines is through a firewall gateway, then the built-in firewall support of the FTP Client ActiveX control can be used to established an FTP session. FwPort must be the firewall service port. The FwUsername and FwPassword properties must contain a valid user name and password to complete the login process.
Some servers also require that Account contain the name of an account for the user.
If the server does not require the name of an account for the user, then Account can be set to an empty string. The application can also set the FwAuthMethods property if it wants to specify any authentication that needs to be negotiated before an actual connection is established. The application should ensure that the method was successfully executed by checking the return value. The method also sets the LastResult property. The value of the LastResult property can be checked to determine if any error occurred.