---
updatedAt: 2025-11-20T11:10:56.000Z
agentTools:
  projectIndex: https://dev.dengage.com/llms.txt
---

# Connect to Dengage FTP

> #### Connection Details
>
> **Protocol:** ftps<br />
> **Host Name:** ftps.dengage.com<br />
> **Port:** TCP 990, TCP 30000-50000<br />
> **Connection Type:** Explicit<br /><br />
> **Sample Codes**<br />
> 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);
	}
}
```

<Callout icon="📘" theme="info">
  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.
</Callout>

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 Name**you should use.

For convenience, you can also refer to the **[API Endpoints by Datacenter](<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 Name you 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.>)** list, which includes the corresponding Host Names for each data center.

<br />