You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用FluentFTP C#连接GoDaddy托管WordPress FTP超时问题排查

问题描述

多次调用以下Connect方法时均抛出TimeoutException,但通过FileZilla可正常连接GoDaddy FTP服务器,怀疑是代码配置存在疏漏。

相关代码
public void Connect()
{
    this.FluentClient.Config.RetryAttempts = 5;
    this.FluentClient.Config.EncryptionMode = FtpEncryptionMode.Implicit;
    this.FluentClient.Config.DataConnectionEncryption = true;
    this.FluentClient.Config.ValidateAnyCertificate = true;
    this.FluentClient.Config.DataConnectionType = FtpDataConnectionType.AutoActive;
    this.FluentClient.Config.DownloadDataType = FtpDataType.Binary;
    this.FluentClient.Config.SocketKeepAlive = true;
    this.FluentClient.Config.StaleDataCheck = true;
    this.FluentClient.Config.ConnectTimeout = 3000;
    this.FluentClient.Config.ReadTimeout = 30000;
    this.FluentClient.Config.DataConnectionConnectTimeout = 30000;
    this.FluentClient.Config.DataConnectionReadTimeout = 30000;

    this.FluentClient.Connect();
}
配置环境
  • .NET Framework 4.7.2
  • FluentFTP 50.0.1
  • GoDaddy托管WordPress FTP
补充信息
  • 可通过FileZilla正常连接该FTP账号
  • GoDaddy官方文档明确说明,托管WordPress使用的SFTP仅支持主动模式
  • 通过cmd命令行登录时同样出现超时错误

内容的提问来源于stack exchange,提问作者Amen Jlili

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 15:52:02