By default, FortiClient EMS will use port 10443 for the FortiClient download URL and port 443 for FortiClient EMS console access. When creating an installer on the FortiClient EMS, the endpoint will use this Download Link to download the .exe or .msi file as the first step in the endpoint upgrade process:    Under FortiClient EMS -> System Settings -> EMS Settings verify the port that is being used, for example:    To change ports in FortiClient EMS v7.2.x, manually install EMS via CLI command and define the desired download and remote management port using the following command:
FortiClientEndpointManagement_7.2.x.XXXX_x64.exe ServerHostname=<preferred_host_name> ClientDownloadPort=<HTTP_port_number> RemoteManagementPort=<HTTPS_port_number>Â
 Change the port in FortiClient EMS v7.4.x and v8.0.x: FortiClient EMS v7.4.x and v8.0.x run on Linux. After the EMS installation is complete, use emscli to modify the required ports.
 To change the Download/File Server Port:
sudo /opt/forticlientems/bin/emscli config set console --fileserver.port=<new_value>
To change the HTTPS port used to access the FortiClient EMS console:
sudo /opt/forticlientems/bin/emscli config set console --https.port=<new_value>
These commands can be executed after FortiClient EMS installation is complete.
Example:
The following example changes the file server port to TCP/60443:
sudo /opt/forticlientems/bin/emscli config set console --fileserver.port=60443
 Verify the new configuration:
After changing the FortiClient EMS file server or HTTPS port, verify that the expected values are configured:
sudo /opt/forticlientems/bin/emscli config get console fileserver.port
sudo /opt/forticlientems/bin/emscli config get console https.port
Confirm that the returned values match the ports configured with emscli config set console.
This verification is recommended before attempting a deployment or FortiClient upgrade from EMS.
Network considerations:
When changing either of the default ports, verify connectivity to the new TCP port from the relevant endpoints and management systems. Any intermediate device or service may also need to be updated accordingly, including: Firewall policies. NAT or VIP configurations. Load balancers or reverse proxies. Upstream security devices. Network ACLs or host-based firewall rules.
The file server port must be reachable by FortiClient endpoints when EMS is used to provide installer or upgrade packages.
The default ports are:
Service | Default port | Purpose |
|---|
File Server / Client Download | TCP/10443 | FortiClient installer and upgrade package downloads | EMS HTTPS Console | TCP/443 | FortiClient EMS web console access |
If a custom port is configured, ensure that the corresponding URL and network access allow endpoints to reach EMS over the new port.
Revert to the default ports:
If required, the default ports can be restored on FortiClient EMS v7.4.x and v8.0.x using:
sudo /opt/forticlientems/bin/emscli config set console --fileserver.port=10443
sudo /opt/forticlientems/bin/emscli config set console --https.port=443
After reverting the configuration, verify the values again using:
sudo /opt/forticlientems/bin/emscli config get console fileserver.port
sudo /opt/forticlientems/bin/emscli config get console https.port
Also confirm that TCP/10443 and TCP/443 are permitted through the applicable network path before testing endpoint downloads or EMS console access.
Related document:
Required services and ports |