Connect to Dengage FTP

Connect to Dengage FTP

Connection Details

Protocol: ftps
Host Name: ftps.dengage.com
Port: TCP 990, TCP 30000-50000
Connection Type: Explicit

Sample Codes
You can find the sample codes for connecting to D·engage FTPS below

public static async System.Threading.Tasks.Task ConnectToDengageFtpOverFluentAsync()
{
try
{
var client = new FtpClient("ftps.dengage.com")
{
Port = 990,
Credentials = new NetworkCredential("your_ftp_username", "your_ftp_password"),
SslProtocols = SslProtocols.Tls12,
DataConnectionType = FtpDataConnectionType.AutoPassive,
EncryptionMode = FtpEncryptionMode.Explicit,
Encoding = Encoding.UTF8,
DataConnectionEncryption = true
};
client.Connect();
client.SetWorkingDirectory("");
client.ValidateCertificate += new FtpSslValidation(OnValidateCertificate);
var workDir = client.GetWorkingDirectory();
FtpListItem[] list = client.GetListing(workDir, FtpListOption.UseStat);

foreach (FtpListItem li in list)
{
Console.WriteLine(li.Type + " " + li.FullName);
}

client.UploadDataType = FtpDataType.Binary;
client.UploadFile("c:\\source_folder\\a.txt", "/destination_folder/a.txt");

if (client.IsConnected)
{

}
}
catch (Exception ex)
{
throw ex;
}
}
private static void OnValidateCertificate(FluentFTP.FtpClient c, FtpSslValidationEventArgs e)
{
e.Accept = true;
}
private static void WinSCP()
{
try
{
// Setup session options
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Ftp,
HostName = "ftps.dengage.com",
UserName = "your_ftp_username",
Password = "your_ftp_pass",
FtpMode = FtpMode.Passive,
FtpSecure = FtpSecure.Explicit,
PortNumber = 990
};

using (Session session = new Session())
{
// Connect
session.Open(sessionOptions);

// Upload files
TransferOptions transferOptions = new TransferOptions
{
TransferMode = TransferMode.Binary
};

TransferOperationResult transferResult;
transferResult = session.PutFiles(@"c:\source_folder\a.txt", "/destination_folder/", false, transferOptions);
// Throw on any error
transferResult.Check();

// Print results
foreach (TransferEventArgs transfer in transferResult.Transfers)
{
Console.WriteLine("Upload of {0} succeeded", transfer.FileName);
}
}
}
catch (Exception e)
{
Console.WriteLine("Error: {0}", e);
}
}
📘

Note

When setting up FTP integration, the Host Name varies depending on the data center. Ensure you select the appropriate Host Name according to your data center to complete the integration successfully.

You can find the correct Host Name directly on the platform: Settings > Identity & Access Management > FTP Users

Under each FTP user, the Connection Info section displays the exact Host Nameyou should use.

For convenience, you can also refer to the API Endpoints by Datacenter list, which includes the corresponding Host Names for each data center.

    • Related Articles

    • Dengage Onboarding

      Welcome to Dengage CXDP! This guide will walk you through the onboarding process, which consists of two main topics: Data Integration and Channel Integration. Data Integration Dengage CXDP enables you to store and manage both online and offline data. ...
    • Automation FTP User

      The Dengage platform supports FTPS (File Transfer Protocol Secure) to allow clients to securely integrate via file transfer protocol. The FTP Users section under Settings > Identity & Access Management allows you to manage FTP users. This feature ...
    • Adding FTP IP Restriction to Settings

      The FTP Users system now includes an IP Restriction feature, allowing administrators to control FTP access by specifying allowed IP addresses. Enabling IP Restriction A new "Restrict IP Access" checkbox has been added to the FTP Users screen. When ...
    • Migration From Old Dengage Sdk

      Class Imports You can change class imports with respect to table below. Old Sdk New Sdk com.dengage.sdk.DengageLifecycleTracker com.dengage.sdk.util.DengageLifecycleTracker com.dengage.sdk.NotificationReceiver ...
    • Platform Limits

      The document explains the key parameters and limits of the Dengage Platform. Expiration Period in User Invitations: 7 days To add more users to your accounts, you must invite them to the platform using their email addresses. The invitation expires in ...