Home Forums .NET libraries Xceed SFTP/FTP for .NET Setting username, password

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21240 |

    I want to set the username, password, serveraddress in code. Which namespace would I use for that? I was trying to use

    Xceed.Ftp.FtpClient

     but those properties weren’t available.

     Thanks,

    Rich

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Richard (had 1620 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Rich,

    the proper way to use the FtpClient class is the following:

    FtpClient

    ftpClient = new FtpClient();

    string username=“”;

    string password=“”;

    string hostname=“”;

    ftpClient.Connect( hostname );

    ftpClient.Login( username, password );

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Mohamed [Xceed] (had 1105 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.