【问题标题】:Is there a way to bind local IPEndPoint to FtpClient object in FluentFTP library?有没有办法将本地 IPEndPoint 绑定到 FluentFTP 库中的 FtpClient 对象?
【发布时间】:2021-03-10 09:06:19
【问题描述】:

到目前为止,我已经尝试过了

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(url);
request.ServicePoint.BindIPEndPointDelegate = delegate
{
    IPAddress ip = IPAddress.Parse("127.0.0.1");
    return new IPEndPoint(ip, 0);
};
request.Method = WebRequestMethods.Ftp.Rename;

问题是FtpWebRequest 类的功能有限,而FtpClient 更通用。如何在 FluentFTP 库中将本地 IpEndpoint 绑定到 FtpClient 类?有什么建议吗?

【问题讨论】:

    标签: c# ftp ftpwebrequest fluentftp


    【解决方案1】:

    这似乎是不可能的。

    FluentFTP 让您只需要通过InternetProtocolVersions 选择您想要使用的 IP 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-29
      • 2019-12-25
      • 2012-07-07
      • 2010-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多