# Server Connection: FTP

Fields with the asterisk **\*** are mandatory.

<table><thead><tr><th width="230.00006103515625">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>SERVER NAME *</strong></td><td>Enter a unique name for the server.</td></tr><tr><td><strong>DESCRIPTION *</strong> </td><td>Provide a brief description of the server.</td></tr><tr><td><strong>PORT *</strong></td><td>Enter the port to connect to the server. This is the TCP/IP port the server will listen to in the STENG node.</td></tr><tr><td><strong>PORT RANGE</strong></td><td>Enter the range for the ports the server will listen to.</td></tr><tr><td><strong>ACTIVE DATA CONNECTION LOCAL ADDRESS</strong></td><td>Enter the local address for active data connection</td></tr><tr><td><strong>PASSIVE EXTERNAL ADDRESS</strong></td><td>This field must be filled in only if OPERATING MODE is set to PASSIVE and will contain the address used for passive connections. If the server is behind NAT, insert the external IP address.</td></tr><tr><td><strong>MAX SESSION</strong></td><td>Specify the maximum number of active sessions.</td></tr><tr><td><strong>CONNECTION TIMEOUT</strong></td><td>Define the number of seconds without network activity to wait before closing a session due to inactivity. Default value: 60.</td></tr><tr><td><strong>ACTIVE DATA CONN LOCAL OUTPORT</strong></td><td>If the OPERATING MODE is set to ACTIVE, enter the port the client must connect to.</td></tr><tr><td><strong>OPERATING MODE</strong></td><td>How data connection is handled. <br>Possible values:<br>- <strong>ACTIVE</strong> (default): the server initiates the data connection to the client.<br>- <strong>PASSIVE</strong>: the server waits for the client to initiate the data connection.</td></tr></tbody></table>

<table><thead><tr><th width="230.00006103515625">DMZ mode</th><th></th></tr></thead><tbody><tr><td><strong>NONE (default)</strong></td><td>No session proxying through DMZ Gateway applied.</td></tr><tr><td><strong>PORT_FORWARDING</strong></td><td>Incoming/Outgoing connections to/from STENG server will be proxied inside an SSL tunnel without being validated in advance.<br><strong>DMZ PROXY PORT *</strong>: This port represents the tunnel that is opened for connection with the STENG Server.</td></tr><tr><td><strong>SESSION_TERMINATION</strong></td><td>The server session will be terminated inside the DMZ Gateway before data is sent to STENG server.<br><strong>DMZ PROXY PORT *</strong>: This port represents the tunnel that is opened for connection with the STENG Server.<br><strong>SERVER PORT *</strong>: DMZ server port used for connection.<br><strong>DMZ PASSIVE EXTERNAL ADDRESS</strong>: When an FTP client wants transfer data using Passive Mode, it issues the PASV command. Upon receiving that command, the FTP server responds with the server’s IP address and the port number the client must connect to.<br><strong>DMZ PORT RANGE</strong>: Range of ports for passive data connection.</td></tr></tbody></table>

To change any DMZ port of an FTP server that belongs to a peer, select the server you want to update. Next, click the pencil icon in the top-right corner of the server card. Enter the new port or ports in the appropriate fields. Finally, click the **SAVE** button to confirm your changes. Remember that the new port number will only affect the peer's selected server.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-mover-1.21/transfer-protocols-and-connectors/server-connections/server-connection-ftp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
