Hi,
I am hosting docker in windows container using Azure App Service.
Trying to FTP into an external remote server from docker.
Everything works fine in local pc, it does not work when deployed to Azure App Service.
System.TimeoutException: Timed out trying to connect! at FluentFTP.FtpSocketStream.Connect(String host, Int32 port, FtpIpVersion ipVersions) at FluentFTP.FtpClient.Connect(FtpSocketStream stream) at FluentFTP.FtpClient.Connect() at
Am using FluentFtp to do it as for now
FtpClient client = new FtpClient("waws-prod-sg1-067.ftp.azurewebsites.windows.net", 21, @"test", "test");
client.EncryptionMode = FtpEncryptionMode.Auto;
client.DataConnectionEncryption = true;
client.ValidateAnyCertificate = true;
client.SslProtocols = SslProtocols.Tls12;
client.DataConnectionType = FtpDataConnectionType.EPSV;
client.Connect();
await client.UploadBytesAsync(content, "test.xlsx");
Anyone can help or advise on this? Not much resource can be found online.
Thanks