---
schema_version: "1"
id: 70a88cd1e1080c84a226eb6c078c7d270830bf076accb4f00ff6e64f1ee5c4f4
title: Connect to an FTP Server Example
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/ftp-connector/latest/ftp-connection.md
canonical_url: https://docs.mulesoft.com/ftp-connector/latest/ftp-connection
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7f97a44bb217c28c99d5a483880f98b0bb0e286aa38e24681b4d717fc617b902
description: MuleSoft Documentation Site
release: "2.0"
latest: true
---
---
product: FTP Connector
version: 2.0
is-latest-version: true
---

# Connect to an FTP Server Example

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

To configure the global element to connect to an FTP server, follow these steps:

1.  Select the name of the connector in the Studio canvas.

2.  Select the operation in the Studio canvas.

3.  In the configuration screen for the operation, click the plus sign (**+**) next to **Connector
    configuration** to access the global element configuration fields.

4.  On the **General** tab, specify the connection information for the connector.

5.  Set **Working Directory** to `${workingDir}`.  
    This is the root of every relative path used with this connector. The value defaults to the
    remote server.

6.  Set **Host** to specify the SFTP server host, for example, `localhost` or `192.168.0.1`.

7.  Set **Port** to `${ftpPort}`.

8.  Set **Username** to `anonymous` and **Password** to `password`.

9.  On the **Advanced** tab, optionally specify the timeout configuration and reconnection strategy.

10. Click **Test Connection** to confirm that Mule can connect with the specified server.

11. Click **OK**.

![FTP Connector Global Element Configuration](/mulesoft/current/en-us/ftp-connector/latest/_images/ftp-global-configuration.png)

In the **Configuration XML** tab of your Studio canvas, the configuration `ftp:config` looks like
this:

```xml
<ftp:config name="FTP_Config" doc:name="FTP Config" doc:id="" >
  <ftp:connection workingDir="${workingDir}" host="localhost"
    port="${ftpPort}" username="anonymous" password="password" />
</ftp:config>
```

## See Also

- [FTP Connector Examples](https://docs.mulesoft.com/ftp-connector/latest/ftp-examples)

- [Salesforce Help](https://help.salesforce.com)
